/* ============================================
   KrazzFM Shoutbox - Modern Design
   ============================================ */

/* Container */
.shoutbox-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.shoutbox-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #64C900;
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 30px;
  color: white;
}

.shoutbox-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.shoutbox-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: white;
  flex: 1;
}

.btn-send-shout {
  background: linear-gradient(135deg, #64C900 0%, #4a9600 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(100, 201, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-send-shout:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(100, 201, 0, 0.5);
  background: linear-gradient(135deg, #4a9600 0%, #64C900 100%);
}

.btn-send-shout:active {
  transform: translateY(-1px);
}

.btn-send-shout i {
  font-size: 1.1rem;
}

/* Messages Container */
.shoutbox-messages {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 201, 0, 0.3);
}

/* Individual Message */
.shout-message {
  display: flex;
  gap: 15px;
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(45, 45, 45, 0.6);
  border-radius: 10px;
  border-left: 4px solid #64C900;
  transition: all 0.3s ease;
  position: relative;
}

.shout-message:hover {
  background: rgba(50, 50, 50, 0.8);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(100, 201, 0, 0.2);
}

.shout-message:last-child {
  margin-bottom: 0;
}

/* Avatar */
.shout-avatar {
  position: relative;
  flex-shrink: 0;
}

.shout-avatar img {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.online-indicator.online i {
  color: #64C900;
  font-size: 10px;
}

.online-indicator.offline i {
  color: #dc3545;
  font-size: 10px;
}

/* Content */
.shout-content {
  flex: 1;
  min-width: 0;
}

/* Header */
.shout-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.shout-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shout-username {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.shout-username a {
  color: #64C900;
  text-decoration: none;
  transition: color 0.3s ease;
}

.shout-username a:hover {
  color: #7ee000;
}

.shout-time {
  font-size: 0.85rem;
  color: #999;
}

/* Actions */
.shout-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shout-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.shout-btn-reply {
  background: #64C900;
  color: white;
}

.shout-btn-reply:hover {
  background: #4a9600;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(100, 201, 0, 0.3);
}

.shout-btn-edit {
  background: #6c757d;
  color: white;
}

.shout-btn-edit:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.shout-btn-delete {
  background: #dc3545;
  color: white;
}

.shout-btn-delete:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.shout-id {
  font-size: 0.8rem;
  color: #999;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  font-weight: 600;
}

/* Message Body */
.shout-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.shout-body a {
  color: #64C900;
  text-decoration: underline;
}

.shout-body a:hover {
  color: #7ee000;
}

.shout-blocked {
  color: #999;
  font-style: italic;
  background: rgba(220, 53, 69, 0.1);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.shout-blocked i {
  margin-right: 6px;
  color: #dc3545;
}

/* Empty State */
.shoutbox-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  background: rgba(30, 30, 30, 0.5);
  border-radius: 10px;
  border: 1px dashed rgba(100, 201, 0, 0.3);
}

.shoutbox-empty i {
  font-size: 4rem;
  color: rgba(100, 201, 0, 0.3);
  margin-bottom: 20px;
}

.shoutbox-empty p {
  font-size: 1.1rem;
  margin: 0;
}

/* Footer */
.shoutbox-footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.shoutbox-pagination {
  text-align: center;
}

.shoutbox-archive {
  text-align: center;
}

.btn-archive {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  border: 1px solid #64C900;
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-archive:hover {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 201, 0, 0.3);
  color: white;
}

.btn-archive i {
  font-size: 0.9rem;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.shout-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.shout-modal-content {
  background: rgba(26, 26, 26, 0.95);
  border: 3px solid #64C900;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(100, 201, 0, 0.3);
  animation: slideUp 0.3s ease;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 90vh;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.shout-modal-header {
  background: transparent;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #64C900;
}

.shout-modal-header h4 {
  margin: 0;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shout-modal-header h4 i {
  color: #64C900;
  font-size: 1.3rem;
}

.shout-modal-close {
  background: rgba(100, 201, 0, 0.1);
  border: 1px solid #64C900;
  color: #64C900;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shout-modal-close:hover {
  background: #64C900;
  color: #1a1a1a;
  transform: rotate(90deg);
}

.shout-modal-body {
  padding: 30px 25px;
}

.shout-modal-body form {
  margin: 0;
}

.shout-modal-body textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 10px;
  border: 2px solid #64C900;
  padding: 15px;
  font-size: 1rem;
  resize: vertical;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  transition: all 0.3s ease;
  font-family: inherit;
}

.shout-modal-body textarea:focus {
  outline: none;
  border-color: #64C900;
  box-shadow: 0 0 0 4px rgba(100, 201, 0, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.shout-modal-body textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.shout-modal-body button[type="submit"],
.shout-modal-body input[type="submit"] {
  background: linear-gradient(135deg, #64C900 0%, #4a9600 100%);
  color: white;
  border: none;
  padding: 14px 35px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(100, 201, 0, 0.3);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shout-modal-body button[type="submit"]:hover,
.shout-modal-body input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(100, 201, 0, 0.4);
  background: linear-gradient(135deg, #4a9600 0%, #64C900 100%);
}

.shout-modal-body button[type="submit"]:active,
.shout-modal-body input[type="submit"]:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .shoutbox-header {
    padding: 15px 20px;
  }
  
  .shoutbox-header-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .shoutbox-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .btn-send-shout {
    width: 100%;
    justify-content: center;
  }
  
  .shoutbox-messages {
    padding: 15px;
  }
  
  .shout-message {
    flex-direction: column;
    padding: 15px;
  }
  
  .shout-avatar {
    align-self: flex-start;
  }
  
  .shout-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .shout-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .shout-btn {
    flex: 0 0 auto;
  }
  
  .shout-id {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .shout-message {
    padding: 12px;
  }
  
  .shout-body {
    font-size: 0.9rem;
  }
  
  .shout-actions {
    flex-wrap: wrap;
  }
  
  .shout-modal-content {
    width: 95%;
    max-width: 95%;
  }
  
  .shout-modal-header {
    padding: 15px 20px;
  }
  
  .shout-modal-header h4 {
    font-size: 1.2rem;
  }
  
  .shout-modal-body {
    padding: 20px;
  }
  
  .shout-modal-body textarea {
    min-height: 100px;
  }
}

/* Animation beim Laden */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shout-message {
  animation: fadeInSlide 0.4s ease forwards;
}

.shout-message:nth-child(1) { animation-delay: 0.05s; }
.shout-message:nth-child(2) { animation-delay: 0.1s; }
.shout-message:nth-child(3) { animation-delay: 0.15s; }
.shout-message:nth-child(4) { animation-delay: 0.2s; }
.shout-message:nth-child(5) { animation-delay: 0.25s; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .shoutbox-messages {
    background: rgba(20, 20, 20, 0.8);
  }
  
  .shout-message {
    background: rgba(35, 35, 35, 0.7);
    border-left-color: #64C900;
  }
  
  .shout-message:hover {
    background: rgba(40, 40, 40, 0.9);
  }
  
  .shout-username,
  .shout-username a {
    color: #64C900;
  }
  
  .shout-username a:hover {
    color: #7ee000;
  }
  
  .shout-body {
    color: #e0e0e0;
  }
  
  .shout-time {
    color: #999;
  }
  
  .shout-modal-content {
    background: rgba(26, 26, 26, 0.98);
  }
  
  .shout-modal-body textarea {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-color: #64C900;
  }
}

/* Scrollbar Styling (optional) */
.shoutbox-messages::-webkit-scrollbar {
  width: 8px;
}

.shoutbox-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.shoutbox-messages::-webkit-scrollbar-thumb {
  background: #64C900;
  border-radius: 10px;
}

.shoutbox-messages::-webkit-scrollbar-thumb:hover {
  background: #7ee000;
}