@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap");

/* ==========================================
   DESIGN SYSTEM VARIABLES
   ========================================== */
:root {
   --bg-color: #0c0714;
   --surface-color: #170d27;
   --surface-hover: #211338;
   --border-color: rgba(168, 85, 247, 0.2);
   --border-hover: rgba(168, 85, 247, 0.4);

   --primary-color: #9d4edd;
   --primary-hover: #b5179e;
   --secondary-color: #f72585;
   --accent-color: #7209b7;
   --success-color: #4cc9f0;
   --warning-color: #ffd700;

   --text-primary: #f8f7ff;
   --text-secondary: #c7c2d8;
   --text-muted: #8e87a5;

   --font-heading: "Outfit", sans-serif;
   --font-body: "Inter", sans-serif;

   --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
   --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.6);
   --shadow-lg: 0 12px 30px rgba(157, 78, 221, 0.15);
   --shadow-glow: 0 0 15px rgba(157, 78, 221, 0.4);

   --radius-sm: 8px;
   --radius-md: 12px;
   --radius-lg: 20px;
   --radius-full: 9999px;

   --transition-fast: 0.2s ease;
   --transition-normal: 0.3s ease;
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */
*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
}

body {
   background-color: var(--bg-color);
   color: var(--text-secondary);
   font-family: var(--font-body);
   line-height: 1.6;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

a {
   color: var(--text-primary);
   text-decoration: none;
   transition: var(--transition-fast);
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

.section {
   padding: 80px 0;
}

.section-title {
   font-family: var(--font-heading);
   color: var(--text-primary);
   font-size: 2rem;
   font-weight: 700;
   margin-bottom: 40px;
   text-align: center;
   position: relative;
}

.section-title::after {
   content: "";
   display: block;
   width: 60px;
   height: 4px;
   background: linear-gradient(
      90deg,
      var(--primary-color),
      var(--secondary-color)
   );
   margin: 12px auto 0;
   border-radius: var(--radius-full);
}

/* ==========================================
   HEADER
   ========================================== */
.header {
   position: sticky;
   top: 0;
   z-index: 100;
   background: rgba(12, 7, 20, 0.85);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-bottom: 1px solid var(--border-color);
   padding: 15px 0;
   transition: var(--transition-normal);
}

.header .container {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.logo img {
   height: 70px;
   width: auto;
}

.nav-menu {
   display: flex;
   list-style: none;
   gap: 30px;
}

.nav-link {
   font-family: var(--font-heading);
   font-weight: 500;
   font-size: 1rem;
   color: var(--text-secondary);
   padding: 8px 0;
   position: relative;
}

.nav-link:hover,
.nav-link.active {
   color: var(--text-primary);
   text-shadow: 0 0 8px rgba(157, 78, 221, 0.5);
}

.nav-link::after {
   content: "";
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--secondary-color);
   transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
   width: 100%;
}

.menu-toggle {
   display: none;
   background: none;
   border: none;
   color: var(--text-primary);
   font-size: 1.8rem;
   cursor: pointer;
}

/* ==========================================
   HERO BANNER
   ========================================== */
.hero {
   position: relative;
   padding: 120px 0;
   background-image:
      linear-gradient(rgba(12, 7, 20, 0.8), rgba(12, 7, 20, 0.95)),
      url("../assets/img/hero-bg.webp");
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   border-bottom: 1px solid var(--border-color);
}

.hero-content {
   max-width: 750px;
   margin: 0 auto;
   text-align: center;
}

.hero-h1 {
   font-family: var(--font-heading);
   font-size: 3.2rem;
   font-weight: 800;
   line-height: 1.15;
   color: var(--text-primary);
   margin-bottom: 20px;
   background: linear-gradient(
      135deg,
      #ffffff 30%,
      #e0aaff 70%,
      var(--secondary-color)
   );
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.hero-text {
   font-size: 1.2rem;
   color: var(--text-secondary);
   margin-bottom: 35px;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-badge {
   display: inline-block;
   padding: 6px 16px;
   background: rgba(157, 78, 221, 0.15);
   border: 1px solid var(--primary-color);
   border-radius: var(--radius-full);
   color: var(--text-primary);
   font-family: var(--font-heading);
   font-size: 0.9rem;
   font-weight: 600;
   margin-bottom: 25px;
   text-transform: uppercase;
   letter-spacing: 1px;
   box-shadow: var(--shadow-glow);
}

/* ==========================================
   CASINO SHOWCASE (VITRINA)
   ========================================== */
.showcase-grid {
   display: flex;
   flex-direction: column;
   gap: 25px;
}

.casino-card {
   background-color: var(--surface-color);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-md);
   padding: 24px;
   display: grid;
   grid-template-columns: 80px 180px 1fr 180px 180px;
   align-items: center;
   gap: 20px;
   position: relative;
   overflow: hidden;
   transition:
      transform var(--transition-normal),
      border var(--transition-normal),
      box-shadow var(--transition-normal);
}

.casino-card:hover {
   transform: translateY(-4px);
   border-color: var(--border-hover);
   box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Top choice tag */
.casino-badge {
   position: absolute;
   top: 0;
   left: 0;
   background: linear-gradient(
      90deg,
      var(--secondary-color),
      var(--primary-color)
   );
   color: var(--text-primary);
   font-family: var(--font-heading);
   font-size: 0.75rem;
   font-weight: 700;
   padding: 4px 14px;
   border-bottom-right-radius: var(--radius-sm);
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.casino-rank {
   font-family: var(--font-heading);
   font-size: 1.8rem;
   font-weight: 800;
   color: var(--text-muted);
   text-align: center;
}

.casino-logo-wrapper {
   background: rgba(12, 7, 20, 0.5);
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: var(--radius-sm);
   padding: 10px;
   display: flex;
   justify-content: center;
   align-items: center;
   aspect-ratio: 16/10;
   width: fit-content;
}

.casino-logo {
   max-height: 100px;
   object-fit: contain;
}

.casino-info {
   display: flex;
   flex-direction: column;
}

.casino-name {
   font-family: var(--font-heading);
   color: var(--text-primary);
   font-size: 1.3rem;
   font-weight: 700;
   margin-bottom: 8px;
}

.casino-rating {
   display: flex;
   align-items: center;
   gap: 8px;
}

.stars {
   color: var(--warning-color);
   font-size: 0.95rem;
   display: flex;
}

.rating-score {
   font-family: var(--font-heading);
   font-weight: 700;
   color: var(--text-primary);
   background: rgba(255, 215, 0, 0.1);
   padding: 2px 8px;
   border-radius: var(--radius-sm);
   font-size: 0.85rem;
}

.casino-bonus-container {
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.bonus-type {
   font-size: 0.8rem;
   color: var(--text-muted);
   text-transform: uppercase;
   margin-bottom: 4px;
   letter-spacing: 0.5px;
}

.bonus-amount {
   font-family: var(--font-heading);
   font-size: 1.4rem;
   font-weight: 800;
   color: var(--text-primary);
   line-height: 1.2;
}

.casino-action {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 8px;
}

.btn-visit {
   display: inline-flex;
   justify-content: center;
   align-items: center;
   width: 100%;
   padding: 14px 24px;
   background: linear-gradient(
      135deg,
      var(--secondary-color) 0%,
      var(--primary-color) 100%
   );
   color: var(--text-primary);
   font-family: var(--font-heading);
   font-weight: 700;
   font-size: 1rem;
   border: none;
   border-radius: var(--radius-sm);
   cursor: pointer;
   box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
   transition: all var(--transition-fast);
}

.btn-visit:hover {
   transform: translateY(-2px);
   box-shadow:
      0 6px 20px rgba(247, 37, 133, 0.5),
      var(--shadow-glow);
   background: linear-gradient(
      135deg,
      var(--primary-hover) 0%,
      var(--secondary-color) 100%
   );
}

.terms-apply {
   font-size: 0.75rem;
   color: var(--text-muted);
   text-align: right;
   text-decoration: underline;
}

/* ==========================================
   CONTENT STYLING (H2-H3, LISTS, TABLES)
   ========================================== */
.content-wrapper {
   background-color: var(--surface-color);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-md);
   padding: 40px;
}

.content-wrapper h2 {
   font-family: var(--font-heading);
   color: var(--text-primary);
   font-size: 1.8rem;
   font-weight: 700;
   margin-top: 35px;
   margin-bottom: 20px;
   padding-bottom: 10px;
   border-bottom: 1px solid var(--border-color);
   position: relative;
}

.content-wrapper h2::after {
   content: "";
   position: absolute;
   bottom: -1px;
   left: 0;
   width: 80px;
   height: 2px;
   background-color: var(--secondary-color);
}

.content-wrapper h3 {
   font-family: var(--font-heading);
   color: var(--text-primary);
   font-size: 1.4rem;
   font-weight: 600;
   margin-top: 25px;
   margin-bottom: 15px;
   display: flex;
   align-items: center;
   gap: 10px;
}

.content-wrapper h3::before {
   content: "";
   display: inline-block;
   width: 8px;
   height: 18px;
   background-color: var(--primary-color);
   border-radius: var(--radius-sm);
}

.content-wrapper p {
   font-size: 1rem;
   color: var(--text-secondary);
   margin-bottom: 20px;
   line-height: 1.7;
}

/* Unordered Lists */
.content-wrapper ul {
   list-style: none;
   margin-bottom: 25px;
   padding-left: 5px;
}

.content-wrapper ul li {
   position: relative;
   padding-left: 30px;
   margin-bottom: 12px;
   font-size: 1rem;
}

.content-wrapper ul li::before {
   content: "✓";
   position: absolute;
   left: 0;
   top: 50%;
   transform: translateY(-50%);
   width: 20px;
   height: 20px;
   background: rgba(76, 201, 240, 0.15);
   border-radius: 50%;
   color: var(--success-color);
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   font-size: 0.8rem;
}

/* Ordered Lists */
.content-wrapper ol {
   list-style: none;
   counter-reset: step-counter;
   margin-bottom: 25px;
   padding-left: 5px;
}

.content-wrapper ol li {
   position: relative;
   padding-left: 35px;
   margin-bottom: 12px;
   font-size: 1rem;
}

.content-wrapper ol li::before {
   content: counter(step-counter);
   counter-increment: step-counter;
   position: absolute;
   left: 0;
   top: 50%;
   transform: translateY(-50%);
   width: 22px;
   height: 22px;
   background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--accent-color)
   );
   color: var(--text-primary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: 0.75rem;
}

/* Tables */
#table-container {
   width: 100%;
   overflow-x: auto;
   margin: 30px 0;
   border-radius: var(--radius-md);
   border: 1px solid var(--border-color);
}

#table-container table {
   width: 100%;
   border-collapse: collapse;
   text-align: left;
   font-size: 0.95rem;
   background-color: rgba(12, 7, 20, 0.3);
}

#table-container th {
   background-color: rgba(157, 78, 221, 0.1);
   color: var(--text-primary);
   font-family: var(--font-heading);
   font-weight: 600;
   padding: 16px 20px;
   border-bottom: 2px solid var(--border-color);
   text-transform: uppercase;
   font-size: 0.85rem;
   letter-spacing: 0.5px;
}

#table-container td {
   padding: 16px 20px;
   border-bottom: 1px solid rgba(168, 85, 247, 0.1);
   color: var(--text-secondary);
}

#table-container tr:last-child td {
   border-bottom: none;
}

#table-container tbody tr {
   transition: background var(--transition-fast);
}

#table-container tbody tr:hover {
   background-color: rgba(157, 78, 221, 0.05);
}

.table-badge {
   display: inline-block;
   padding: 4px 10px;
   border-radius: var(--radius-sm);
   font-size: 0.8rem;
   font-weight: 600;
   text-align: center;
}

.table-badge.yes {
   background: rgba(76, 201, 240, 0.15);
   color: var(--success-color);
}

.table-badge.no {
   background: rgba(247, 37, 133, 0.15);
   color: var(--secondary-color);
}

/* ==========================================
   FAQ SECTION (ACCORDION)
   ========================================== */
.faq-grid {
   max-width: 800px;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   gap: 15px;
}

.faq-item {
   background-color: var(--surface-color);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-md);
   overflow: hidden;
   transition: border-color var(--transition-fast);
}

.faq-item:hover {
   border-color: var(--border-hover);
}

.faq-item details {
   width: 100%;
}

.faq-item summary {
   padding: 20px 24px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   cursor: pointer;
   font-family: var(--font-heading);
   color: var(--text-primary);
   font-weight: 600;
   font-size: 1.1rem;
   outline: none;
   list-style: none; /* Hide default arrow */
}

/* Hide webkit summary marker */
.faq-item summary::-webkit-details-marker {
   display: none;
}

.faq-item summary::after {
   content: "+";
   font-size: 1.5rem;
   color: var(--primary-color);
   line-height: 1;
   transition: transform var(--transition-normal);
}

.faq-item details[open] summary::after {
   transform: rotate(45deg);
   color: var(--secondary-color);
}

.faq-content {
   padding: 0 24px 24px;
   border-top: 1px solid rgba(168, 85, 247, 0.08);
   font-size: 0.95rem;
   color: var(--text-secondary);
   line-height: 1.7;
}

.faq-content p {
   padding-top: 15px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
   background-color: #08040d;
   border-top: 1px solid var(--border-color);
   padding: 60px 0 30px;
   color: var(--text-muted);
}

.footer-top {
   display: grid;
   grid-template-columns: 2fr 1fr 1.5fr;
   gap: 40px;
   margin-bottom: 50px;
}

.footer-brand {
   display: flex;
   flex-direction: column;
   gap: 20px;
}

.footer-logo img {
   height: 40px;
   width: auto;
}

.footer-desc {
   font-size: 0.9rem;
   line-height: 1.6;
}

.footer-links-title {
   font-family: var(--font-heading);
   color: var(--text-primary);
   font-size: 1.1rem;
   font-weight: 600;
   margin-bottom: 20px;
}

.footer-links {
   list-style: none;
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.footer-links a {
   color: var(--text-muted);
   font-size: 0.9rem;
}

.footer-links a:hover {
   color: var(--text-primary);
   padding-left: 5px;
}

.footer-disclaimer {
   display: flex;
   flex-direction: column;
   gap: 15px;
}

.legal-warning {
   font-size: 0.8rem;
   line-height: 1.5;
   border-left: 2px solid var(--secondary-color);
   padding-left: 15px;
}

.badge-18plus {
   display: inline-flex;
   justify-content: center;
   align-items: center;
   width: 38px;
   height: 38px;
   border: 2px solid var(--secondary-color);
   border-radius: 50%;
   color: var(--secondary-color);
   font-weight: 800;
   font-size: 0.85rem;
   box-shadow: 0 0 10px rgba(247, 37, 133, 0.2);
}

.footer-bottom {
   border-top: 1px solid rgba(168, 85, 247, 0.1);
   padding-top: 30px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 0.85rem;
}

.footer-bottom-links {
   display: flex;
   gap: 20px;
}

.footer-bottom-links a {
   color: var(--text-muted);
}

.footer-bottom-links a:hover {
   color: var(--text-primary);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
   .casino-card {
      grid-template-columns: 50px 140px 1fr 140px 140px;
      gap: 15px;
      padding: 20px;
   }

   .casino-name {
      font-size: 1.15rem;
   }

   .bonus-amount {
      font-size: 1.2rem;
   }

   .btn-visit {
      padding: 12px 18px;
      font-size: 0.95rem;
   }
}

@media (max-width: 768px) {
   .section {
      padding: 50px 0;
   }

   .header {
      padding: 10px 0;
   }

   .menu-toggle {
      display: block;
   }

   .nav-menu {
      display: none; /* Will be toggled or kept simple */
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--bg-color);
      border-bottom: 1px solid var(--border-color);
      flex-direction: column;
      padding: 20px;
      gap: 15px;
      box-shadow: var(--shadow-md);
   }

   .nav-menu.active {
      display: flex;
   }

   .hero {
      padding: 80px 0;
   }

   .hero-h1 {
      font-size: 2.2rem;
   }

   .hero-text {
      font-size: 1rem;
   }

   /* Stack the Showcase */
   .casino-card {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 15px;
      padding: 30px 20px 20px;
   }

   .casino-badge {
      left: 50%;
      transform: translateX(-50%);
      border-bottom-right-radius: var(--radius-sm);
      border-bottom-left-radius: var(--radius-sm);
   }

   .casino-rank {
      position: absolute;
      top: 10px;
      left: 15px;
   }

   .casino-logo-wrapper {
      margin: 0 auto;
      width: 140px;
   }

   .casino-rating {
      justify-content: center;
   }

   .casino-action {
      align-items: center;
   }

   .terms-apply {
      text-align: center;
   }

   .content-wrapper {
      padding: 20px;
   }

   .footer-top {
      grid-template-columns: 1fr;
      gap: 30px;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 15px;
      text-align: center;
   }
}
