/* css/home.css - Homepage Specific Styles for Bameka Online */

/* =============================================
   HERO SECTION — VIDEO BACKGROUND & ROYAL DESIGN
   ============================================= */
.hero-section {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #050B14;
  border-bottom: 1px solid rgba(59, 130, 246, 0.35);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  transform: scaleX(-1);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 8, 20, 0.95) 0%, rgba(5, 11, 24, 0.82) 48%, rgba(5, 11, 24, 0.35) 100%),
    radial-gradient(circle at 75% 35%, rgba(245, 158, 11, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 25%, transparent 75%, rgba(2, 6, 18, 0.95) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  align-content: end;
  gap: 2rem;
  padding-top: 100px;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
}

.hero-content {
  align-self: center;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.hero-badge-fest {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-badge-fest-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-badge-fest-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hero-title-top {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-title-main {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-300) 0%, var(--blue-400) 50%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -4px;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.hero-rule {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--blue-500), transparent);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.hero-fest-banner {
  background: rgba(11, 19, 36, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid var(--gold-400);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-fest-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.hero-fest-date {
  color: var(--gold-400);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
  font-style: italic;
}

.hero-cta-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.85rem;
  max-width: 520px;
}

@media (max-width: 480px) {
  .hero-cta-group {
    grid-template-columns: 1fr;
  }
}

.hero-image-wrap {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  perspective: 1000px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0;
  width: 100%;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 85%;
  background: radial-gradient(ellipse at 50% 70%, rgba(245, 158, 11, 0.32) 0%, rgba(59, 130, 246, 0.18) 45%, transparent 72%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}

.hero-king-img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block !important;
  vertical-align: bottom !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(-15px 10px 40px rgba(0,0,0,0.85));
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
  transform-origin: bottom center;
  will-change: transform;
}

/* Mobile adjustments */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 90px;
    padding-bottom: 0;
    gap: 1.5rem;
    align-items: end;
  }
  .hero-rule {
    margin: 0 auto 1.25rem;
  }
  .hero-fest-banner {
    margin: 0 auto 1.5rem;
    border-left: 1px solid rgba(245, 158, 11, 0.35);
    border-top: 3px solid var(--gold-400);
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    margin: 0 auto;
  }
  .hero-content {
    padding-bottom: 1rem;
  }
  .hero-king-img {
    max-height: 480px;
    width: auto;
    margin: 0 auto;
    display: block;
    vertical-align: bottom;
  }
}

/* =============================================
   MEDIA + MESSAGE STRIP
   ============================================= */
.media-strip {
  background: #020612;
  padding: 0;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.media-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.media-card {
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-right: 1px solid rgba(59, 130, 246, 0.12);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.media-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover::before {
  opacity: 1;
}

.media-card:last-child {
  border-right: none;
}

.media-card--tv {
  background: linear-gradient(135deg, rgba(40, 10, 10, 0.9) 0%, rgba(15, 5, 5, 0.95) 100%);
  color: var(--white);
}

.media-card--radio {
  background: linear-gradient(135deg, rgba(10, 26, 53, 0.9) 0%, rgba(5, 13, 26, 0.95) 100%);
  color: var(--white);
}

.media-card--message {
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.95) 0%, rgba(11, 15, 26, 0.95) 100%);
  color: var(--white);
  border-left: 3px solid var(--gold-400);
}

.media-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.media-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-card--tv .media-card-icon {
  background: rgba(239, 68, 68, 0.18);
  color: var(--red-400);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.media-card--radio .media-card-icon {
  background: rgba(59, 130, 246, 0.18);
  color: var(--blue-400);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.media-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.media-card-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.media-card-sub {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-400);
}

.media-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  flex: 1;
}

.media-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
  cursor: pointer;
  border: none;
}

.media-btn--red {
  background: var(--red-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.media-btn--red:hover {
  background: var(--red-600);
  transform: translateY(-2px);
  color: #fff;
}

.media-btn--blue {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.media-btn--blue:hover {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  transform: translateY(-2px);
  color: #fff;
}

.media-btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #050B14;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.media-btn--gold:hover {
  transform: translateY(-2px);
  color: #020612;
}

.message-quote {
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--gold-400);
  font-family: Georgia, serif;
  opacity: 0.5;
}

.message-from {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
}

.message-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

.message-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
}

.message-sig {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-300);
}

@media (max-width: 992px) {
  .media-strip-grid {
    grid-template-columns: 1fr;
  }
  .media-card {
    border-right: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
  }
}

/* =============================================
   CATEGORY SECTION — EXPLORATION
   ============================================= */
.category-section {
  padding: 5rem 0;
  background: #050B14;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  padding: 0 1.5rem;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(11, 19, 36, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245, 158, 11, 0.5), rgba(59, 130, 246, 0.2) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.category-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.18);
}

.category-card:hover::before {
  opacity: 1;
}

.category-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-img-wrap img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.85) 0%, transparent 80%);
}

.category-icon {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.9);
  border: 2px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--gold-400);
  color: #050B14;
}

.category-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  padding: 0.85rem 0.75rem 0.25rem;
  line-height: 1.3;
}

.category-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 0.75rem 0.4rem;
  line-height: 1.4;
  flex: 1;
}

.category-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-400);
  padding: 0.4rem 0.75rem 0.85rem;
  letter-spacing: 0.04em;
}

.category-card:hover .category-link {
  color: var(--gold-400);
}

@media (max-width: 1200px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* =============================================
   BOTTOM STRIP: Stats + Countdown + Gallery
   ============================================= */
.bottom-strip {
  background: #020612;
  padding: 5rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.bottom-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 2rem;
  align-items: stretch;
  padding: 0 1.5rem;
}

.stats-block, .gallery-slideshow-block {
  background: rgba(11, 19, 36, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 2rem;
}

.stats-heading, .news-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-400);
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.stats-rule {
  width: 40px;
  height: 2px;
  background: var(--gold-400);
  margin: 0 auto 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 0.25rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Countdown */
.countdown-block {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.85) 50%, rgba(5, 11, 24, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  text-align: center;
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.countdown-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.4rem;
}

.countdown-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.countdown-box {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: rgba(2, 6, 18, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.countdown-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.25);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-400);
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* Slideshow */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: none;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #fff;
  padding: 1.5rem 1rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.slide-prev, .slide-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 5;
}

.slide-next { right: 8px; }
.slide-prev { left: 8px; }

.slide-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
}

.dot {
  cursor: pointer;
  height: 7px;
  width: 7px;
  margin: 0 3px;
  background-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  display: inline-block;
}

.dot.active { background-color: var(--gold-400); }

@media (max-width: 992px) {
  .bottom-strip-grid { grid-template-columns: 1fr; }
}
