/* 80th Independence Day Celebration Styles - Vichara QDA */

:root {
  --id-saffron: #FF9933;
  --id-saffron-dark: #E65100;
  --id-saffron-glow: rgba(255, 153, 51, 0.4);
  --id-white: #FFFFFF;
  --id-green: #138808;
  --id-green-dark: #0A5A05;
  --id-green-glow: rgba(19, 136, 8, 0.4);
  --id-navy: #000088;
  --id-gold: #FFD700;
}

/* Banner Container */
.id-celebration-banner {
  position: relative;
  z-index: 100;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.95) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(240, 253, 244, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%) 1;
  box-shadow: 0 4px 25px rgba(255, 153, 51, 0.12), 0 2px 10px rgba(19, 136, 8, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: idSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.id-celebration-banner.id-collapsed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Top decorative tricolor micro-stripe */
.id-tricolor-stripe {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, 
    #FF9933 0%, #FF9933 33.33%, 
    #FFFFFF 33.33%, #FFFFFF 66.66%, 
    #138808 66.66%, #138808 100%
  );
  position: relative;
  background-size: 200% 100%;
  animation: idStripeShimmer 4s ease infinite;
}

@keyframes idStripeShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.id-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

/* Left Brand & Waving Flag Unit */
.id-flag-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.id-flag-pole-assembly {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.id-flag-pole {
  width: 4px;
  height: 52px;
  background: linear-gradient(180deg, #E2E8F0 0%, #94A3B8 70%, #64748B 100%);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  position: relative;
}

.id-flag-pole::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -3px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #FFE082, #FFB300);
  border-radius: 50%;
  box-shadow: 0 0 6px #FFA000;
}

/* Waving Tiranga Flag with 3D Shader Wave Effect */
.id-flag-cloth {
  width: 58px;
  height: 38px;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: left center;
  animation: idFlagWave 2.8s ease-in-out infinite alternate;
}

.id-flag-cloth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.4) 0%,
    rgba(0,0,0,0.15) 25%,
    rgba(255,255,255,0.4) 50%,
    rgba(0,0,0,0.12) 75%,
    rgba(255,255,255,0.3) 100%
  );
  background-size: 200% 100%;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: idWaveShimmer 2.8s ease-in-out infinite alternate;
}

.id-flag-saffron {
  flex: 1;
  background: #FF9933;
}

.id-flag-white {
  flex: 1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.id-flag-green {
  flex: 1;
  background: #138808;
}

/* Rotating Ashoka Chakra */
.id-chakra-svg {
  width: 11px;
  height: 11px;
  animation: idRotateChakra 12s linear infinite;
  transform-origin: center center;
}

@keyframes idRotateChakra {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes idFlagWave {
  0% {
    transform: perspective(400px) rotateY(0deg) skewY(0deg);
  }
  33% {
    transform: perspective(400px) rotateY(-8deg) skewY(2.5deg) scaleY(0.98);
  }
  66% {
    transform: perspective(400px) rotateY(6deg) skewY(-2deg) scaleY(1.02);
  }
  100% {
    transform: perspective(400px) rotateY(-5deg) skewY(2deg);
  }
}

@keyframes idWaveShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

/* Banner Content */
.id-banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.id-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.id-edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  color: #BF360C;
  border: 1px solid rgba(255, 153, 51, 0.4);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(255, 111, 0, 0.15);
}

.id-edition-pill .id-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E65100;
  box-shadow: 0 0 6px #FF5722;
  animation: idPulseDot 1.6s ease-in-out infinite;
}

@keyframes idPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.id-banner-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.2px;
}

.id-banner-title .id-gradient-text {
  background: linear-gradient(90deg, #E65100 0%, #1565C0 48%, #1B5E20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.id-banner-subtitle {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
}

.id-banner-subtitle b {
  color: #0F172A;
}

/* Actions */
.id-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.id-celebrate-btn {
  background: linear-gradient(135deg, #FF9933 0%, #FF6F00 50%, #E65100 100%);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(255, 111, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.id-celebrate-btn:hover {
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 5px 18px rgba(255, 111, 0, 0.45);
}

.id-celebrate-btn:active {
  transform: translateY(0) scale(0.98);
}

.id-close-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #64748B;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.id-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1E293B;
  border-color: rgba(148, 163, 184, 0.6);
}

/* Re-open Tab when dismissed */
.id-reopen-tab {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 999;
  background: linear-gradient(135deg, #FF9933, #138808);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: idFadeIn 0.3s ease forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.id-reopen-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.24);
}

/* Floating Fullscreen Confetti / Petal Canvas */
#id-celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Hero Badge Enhancement on Independence Day */
.india-badge.id-celebration-highlight {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF, #FFF9F2);
  border-color: rgba(255, 153, 51, 0.5);
  box-shadow: 0 4px 18px rgba(255, 153, 51, 0.2), 0 2px 8px rgba(19, 136, 8, 0.15);
  transform-origin: center;
  animation: idBadgeGlow 3s ease-in-out infinite alternate;
}

@keyframes idBadgeGlow {
  0% {
    border-color: rgba(255, 153, 51, 0.5);
    box-shadow: 0 4px 16px rgba(255, 153, 51, 0.2);
  }
  50% {
    border-color: rgba(0, 0, 136, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 136, 0.15);
  }
  100% {
    border-color: rgba(19, 136, 8, 0.5);
    box-shadow: 0 4px 16px rgba(19, 136, 8, 0.2);
  }
}

.id-sparkle-pill {
  font-size: 11px;
  font-weight: 700;
  color: #D97706;
  background: #FEF3C7;
  padding: 1px 7px;
  border-radius: 12px;
  margin-left: 4px;
}

/* Patriot Toast Message */
.id-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  z-index: 10000;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.id-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.id-toast-chakra {
  width: 18px;
  height: 18px;
  animation: idRotateChakra 4s linear infinite;
}

/* Keyframe animations */
@keyframes idSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes idFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive queries */
@media (max-width: 860px) {
  .id-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 18px;
  }
  
  .id-banner-actions {
    align-self: stretch;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
  }

  .id-celebrate-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .id-flag-wrapper {
    gap: 10px;
  }
  .id-flag-cloth {
    width: 46px;
    height: 30px;
  }
  .id-flag-pole {
    height: 44px;
  }
  .id-banner-title {
    font-size: 14px;
  }
  .id-banner-subtitle {
    font-size: 12px;
  }
}
