/* ==========================================================================
   DramaGo Landing Page Stylesheet
   ========================================================================== */

/* Color Variables & Base Reset */
:root {
  --color-bg: #070b14;
  --color-surface: #101725;
  --color-surface-soft: #161f30;
  --color-text: #ffffff;
  --color-text-muted: #aab3c2;
  --color-primary: #ef2637;
  --color-primary-hover: #ff4050;
  --color-gold: #f5bd42;
  --color-gold-dark: #070b14;
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-hover: rgba(255, 255, 255, 0.2);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --max-width: 1280px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px; /* Reserve space for mobile sticky CTA */
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Layout Containers & Common Elements
   ========================================================================== */

.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  font-weight: 400;
}

/* Buttons */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text);
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* Focus States */
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #aab3c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("Main-Banner.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-reward-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-gold);
  color: var(--color-gold-dark);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(245, 189, 66, 0.25);
  text-shadow: none;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #e2e8f0;
  margin-bottom: 28px;
  line-height: 1.5;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.hero-helper-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   Horizontal Slider Sections
   ========================================================================== */

.slider-section {
  padding: 40px 0;
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color var(--transition-fast), opacity var(--transition-fast), border-color var(--transition-fast);
}

.slider-btn:hover:not(:disabled) {
  background-color: var(--color-surface-soft);
  border-color: var(--color-border-hover);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-track-wrapper {
  overflow: hidden;
  margin: 0 -20px;
  padding: 0 20px;
}

.slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;

  /* Hide scrollbars */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

/* Poster Card Layout */
.poster-card {
  flex: 0 0 calc((100% - 16px) / 2.2);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.poster-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.poster-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background-color: var(--color-surface-soft);
  overflow: hidden;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background-color: var(--color-gold);
  color: var(--color-gold-dark);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 7px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.poster-action {
  padding: 9px;
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poster-btn {
  width: 100%;
  padding: 9px 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .poster-card {
    flex: 0 0 calc((100% - 32px) / 3.3);
  }

  .poster-badge {
    top: 10px;
    left: 10px;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .poster-action {
    padding: 12px;
  }

  .poster-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .poster-card {
    flex: 0 0 calc((100% - 64px) / 5);
  }
}

/* Hide navigation arrows on touch/mobile screens */
@media (max-width: 768px) {
  .slider-controls {
    display: none;
  }
}

/* ==========================================================================
   Steps Section (Cara Untuk Bermula)
   ========================================================================== */

.steps-section {
  padding: 60px 0;
  background-color: rgba(16, 23, 37, 0.4);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: border-color var(--transition-fast);
}

.step-card:hover {
  border-color: var(--color-border-hover);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(239, 38, 55, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  padding: 60px 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-trigger {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  gap: 16px;
}

.faq-arrow {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--color-gold);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-content-inner {
  padding: 0 20px 20px 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Bottom CTA Section
   ========================================================================== */

.cta-bottom-section {
  padding: 60px 0 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-soft) 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.cta-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 16px;
  opacity: 0.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: rgba(7, 11, 20, 0.95);
  border-top: 1px solid var(--color-border);
  padding: 32px 0 40px 0;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0.7;
}

/* ==========================================================================
   Mobile Fixed Bottom Sticky Bar
   ========================================================================== */

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background-color: rgba(16, 23, 37, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)) 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
}

.sticky-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sticky-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }
}

/* ==========================================================================
   Age Confirmation Modal
   ========================================================================== */

.age-modal[hidden] {
  display: none;
}

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.age-modal.is-open {
  opacity: 1;
}

.age-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.age-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 36px 28px 28px;
  overflow: hidden;
  border: 1px solid var(--color-border-hover);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--color-surface-soft), var(--color-surface));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition-normal);
}

.age-modal.is-open .age-modal-dialog {
  transform: translateY(0) scale(1);
}

.age-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.age-modal-close:hover {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.08);
}

.age-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(245, 189, 66, 0.12);
  color: var(--color-gold);
  font-size: 1.75rem;
}

.age-modal-title {
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1.25;
}

.age-modal-description {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.age-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.age-modal-button {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
}

.age-modal-button-secondary {
  border: 1px solid var(--color-border-hover);
  background-color: transparent;
  color: var(--color-text);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.age-modal-button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background-color: rgba(255, 255, 255, 0.06);
}

.age-modal-error {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: rgba(239, 38, 55, 0.12);
  color: #ff9da5;
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .age-modal-dialog {
    padding: 32px 20px 24px;
  }
}

/* Desktop Hero Height Constraints */
@media (min-width: 769px) {
  .hero-section {
    height: clamp(620px, 70vh, 760px);
  }
}
