/* User Announcement Banner Styles */

#user_announcement_banner {
  display: none;
  width: 100vw;
  background: #000;
  margin-top: 70px;
  overflow: visible;
  position: relative;
  padding: 30px 0 0 0;
}

#user_announcement_banner.active {
  display: block;
}

/* Sender info strip animation */
.sender-info-strip {
  animation: senderStripPulse 3s ease-in-out infinite;
}

@keyframes senderStripPulse {
  0%, 100% {
    opacity: 0.7;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(255,215,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
  }
  50% {
    opacity: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(255,215,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
  }
}

.user-ann-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: url(/images/duyuru.png) no-repeat center;
  background-size: contain;
}

/* VIP Announcement Style - LED Train Panel Style */
.user-ann-content.vip-style {
  min-height: 120px;
  padding: 40px 80px;
  background: #1a1a1a !important;
  border: 2px solid #555 !important;
  border-radius: 0 !important;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6) !important;
  animation: flicker 0.1s infinite !important;
  position: relative !important;
  overflow: visible !important;
  font-family: 'Orbitron', monospace !important;
  margin: 0 auto;
}

#user-ann-text {
  margin: 0;
  font-family: 'Tahoma', Arial, sans-serif;
  font-size: 16px;
  text-align: center;
  text-shadow: 1px 1px 0px #000;
  color: rgb(242, 231, 193);
  /* Remove animation to simplify */
}

/* Basic Announcement Style */
.user-ann-content.basic-style #user-ann-text {
  color: rgb(242, 231, 193);
}

/* Gold Announcement Style */
.user-ann-content.gold-style {
  background: url(/images/duyuru.png) no-repeat center;
  background-size: contain;
  filter: sepia(20%) saturate(1.2) brightness(1.1);
}

.user-ann-content.gold-style #user-ann-text {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 1px 1px 0px #000;
  animation: goldGlow 2s ease-in-out infinite;
}

.user-ann-content.vip-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 2px 2px, rgba(255,215,0,0.1) 1px, transparent 0);
  background-size: 6px 6px;
  z-index: 0;
  border-radius: 8px;
}

/* VIP Köşe Rozeti - Sadece Sağ Üst */
.user-ann-content.vip-style::after {
  content: 'VIP';
  position: absolute;
  top: -20px;
  right: 0;
  background: #ffd700;
  color: #000;
  font-weight: 900;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 1.2), 0 2px 10px rgba(0,0,0,0.6);
  animation: vipBadgeGlow 1.5s ease-in-out infinite alternate;
  z-index: 10;
  letter-spacing: 2px;
  font-family: 'Orbitron', monospace;
}

.user-ann-content.vip-style #user-ann-text {
  color: #ffd700 !important;
  text-shadow: 0 0 10px #ffd700 !important;
  font-weight: 900 !important;
  font-size: 24px !important;
  letter-spacing: 2px !important;
  animation: ledGlow 2s ease-in-out infinite alternate !important;
  position: relative;
  z-index: 2;
  font-family: 'Orbitron', monospace !important;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

@keyframes ledGlow {
  from { 
    text-shadow: 0 0 10px #ffd700;
    transform: scale(1);
  }
  to { 
    text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
    transform: scale(1.02);
  }
}

@keyframes vipBadgeGlow {
  from { 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  }
  to { 
    box-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8);
  }
}

/* Mega Announcement Style (Fullscreen) - Advanced VIP Plus */
.user-ann-content.mega-style {
  height: 200px;
  background: #1a1a1a !important;
  border: 5px solid #ffd700 !important;
  border-radius: 16px !important;
  box-shadow: 0 0 40px rgba(255, 215, 0, 1), 
              0 0 80px rgba(255, 215, 0, 0.8),
              0 0 120px rgba(255, 215, 0, 0.4),
              inset 0 0 80px rgba(255, 215, 0, 0.2) !important;
  animation: megaFlicker 0.15s infinite !important;
  position: relative !important;
  overflow: visible !important;
  font-family: 'Orbitron', monospace !important;
}

.user-ann-content.mega-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 2px 2px, rgba(255,215,0,0.3) 1px, transparent 0);
  background-size: 8px 8px;
  z-index: 0;
  border-radius: 16px;
  animation: megaMatrix 3s linear infinite;
}

.user-ann-content.mega-style::after {
  content: 'MEGA';
  position: absolute;
  top: -25px;
  right: 0;
  background: linear-gradient(135deg, #ff0000 0%, #ffd700 50%, #ff0000 100%);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  padding: 10px 24px;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 1), 
              0 0 50px rgba(255, 215, 0, 1),
              0 4px 12px rgba(0,0,0,0.6);
  animation: megaBadgeGlow 1s ease-in-out infinite alternate;
  z-index: 10;
  letter-spacing: 3px;
  font-family: 'Orbitron', monospace;
  border: 3px solid #fff;
  text-shadow: 0 0 10px #fff;
}

.user-ann-content.mega-style #user-ann-text {
  color: #ffd700 !important;
  text-shadow: 0 0 15px #ffd700 !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  letter-spacing: 2px !important;
  animation: megaLedGlow 1.5s ease-in-out infinite alternate !important;
  position: relative;
  z-index: 2;
  font-family: 'Orbitron', monospace !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

@keyframes megaFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

@keyframes megaLedGlow {
  from { 
    text-shadow: 0 0 15px #ffd700, 0 0 25px #ffd700;
    transform: scale(1);
  }
  to { 
    text-shadow: 0 0 30px #ffd700, 0 0 50px #ffd700, 0 0 70px #ffd700;
    transform: scale(1.03);
  }
}

@keyframes megaBadgeGlow {
  from { 
    box-shadow: 0 0 30px rgba(255, 0, 0, 1), 0 0 50px rgba(255, 215, 0, 1);
    transform: scale(1);
  }
  to { 
    box-shadow: 0 0 50px rgba(255, 0, 0, 1), 0 0 80px rgba(255, 215, 0, 1), 0 0 120px rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
  }
}

@keyframes megaMatrix {
  0% { transform: translate(0, 0); }
  100% { transform: translate(8px, 8px); }
}

@keyframes slideInAnnouncement {
  from {
    margin-top: 70px;
    opacity: 0;
  }
  to {
    margin-top: 0;
    opacity: 1;
  }
}

@keyframes goldGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 1px 1px 0px #000;
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 1px 1px 0px #000;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-ann-content {
    height: 60px;
    padding: 6px 16px;
  }
  
  #user-ann-text {
    font-size: 14px;
  }
  
  .user-ann-content.mega-style {
    height: 150px;
  }
  
  .user-ann-content.mega-style #user-ann-text {
    font-size: 18px;
  }
}

