/* ============================================
   CasinoNeptuno — Mediterranean Luxury Theme
   Deep Navy + Gold + Marble White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-deep: #060a14;
  --primary-gold: #c9a84c;
  --primary-gold-light: #e0c76a;
  --primary-gold-dark: #a8893a;
  --secondary-blue: #1e40af;
  --secondary-blue-light: #2563eb;
  --accent-marble: #f8fafc;
  --text-main: #e2e8f0;
  --text-muted: #64748b;
  --surface: #0c1225;
  --surface-light: #111b36;
  --border-gold: rgba(201,168,76,0.3);
  --border-gold-strong: rgba(201,168,76,0.6);
  --shadow-gold: rgba(201,168,76,0.15);
  --marble-gradient: linear-gradient(135deg, rgba(248,250,252,0.02) 0%, rgba(201,168,76,0.03) 50%, rgba(248,250,252,0.02) 100%);
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Marble texture overlay on body */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(30,64,175,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(201,168,76,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-gold-light);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent-marble);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: 3.2rem; font-weight: 600; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

/* Gold decorative line */
.gold-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  margin: 1rem auto;
}

.gold-line-left {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), transparent);
  margin: 1rem 0;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(6,10,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6,10,20,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent-marble);
  font-weight: 300;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-gold);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--primary-gold);
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(30,64,175,0.06) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-marble) 0%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 40px;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-gold);
  color: var(--bg-deep);
  box-shadow: 0 0 30px var(--shadow-gold);
}

.btn-primary {
  background: var(--primary-gold);
  color: var(--bg-deep);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--primary-gold-light);
  color: var(--bg-deep);
  box-shadow: 0 0 40px var(--shadow-gold);
}

.btn-sm {
  padding: 10px 28px;
  font-size: 0.8rem;
}

/* --- Sections --- */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* --- Casino Ranking Cards --- */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ranking-card {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  padding: 40px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 30px;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.ranking-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--marble-gradient);
  pointer-events: none;
}

.ranking-card:hover {
  border-color: var(--border-gold-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 20px var(--shadow-gold);
}

.ranking-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  color: var(--primary-gold);
  line-height: 1;
  text-align: center;
}

.ranking-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-marble);
}

.ranking-info .ranking-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.ranking-feature {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 14px;
  border: 1px solid rgba(100,116,139,0.3);
  letter-spacing: 0.05em;
}

.ranking-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.ranking-bonus {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-gold);
  margin-top: 6px;
  font-weight: 500;
}

.ranking-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ranking-rating {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-gold);
  font-weight: 600;
}

.ranking-rating small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 300;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  padding: 44px 36px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--marble-gradient);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--border-gold-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary-gold);
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--border-gold-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.article-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--surface-light) 0%, var(--secondary-blue) 100%);
  position: relative;
  overflow: hidden;
}

.article-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, var(--surface), transparent);
}

.article-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-gold);
  margin-bottom: 12px;
  font-weight: 400;
}

.article-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.article-card-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-gold);
  font-weight: 400;
  margin-top: 16px;
  display: inline-block;
}

.article-card-link:hover {
  color: var(--primary-gold-light);
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-gold);
  padding: 24px 0;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-marble);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-gold);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-gold);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-gold);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary-gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-gold);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.responsible-gambling {
  max-width: 600px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  border: 1px solid rgba(100,116,139,0.2);
  padding: 16px;
}

.responsible-gambling strong {
  color: var(--primary-gold);
  font-weight: 700;
}

/* --- Article Page Styles --- */
.article-hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
  position: relative;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.article-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.article-hero .breadcrumb a {
  color: var(--text-muted);
}

.article-hero .breadcrumb a:hover {
  color: var(--primary-gold);
}

.article-hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.article-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-gold-light);
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.8rem;
  color: var(--text-main);
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 3px solid var(--primary-gold);
  padding: 20px 30px;
  margin: 2rem 0;
  background: var(--surface);
  font-style: italic;
  color: var(--text-muted);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.article-content th {
  background: var(--surface);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-gold);
  font-size: 1rem;
}

.article-content td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(100,116,139,0.15);
  color: var(--text-main);
  font-size: 0.95rem;
}

.article-content tr:hover td {
  background: rgba(201,168,76,0.03);
}

/* Info box */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  padding: 30px;
  margin: 2rem 0;
  position: relative;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-gold);
}

.info-box h4 {
  color: var(--primary-gold);
  margin-bottom: 0.8rem;
}

/* --- Scroll Fade Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-gold);
  background: rgba(6,10,20,0.9);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 1.2rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-gold);
  color: var(--bg-deep);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-card {
    grid-template-columns: 50px 1fr;
    gap: 20px;
  }

  .ranking-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }

  .hero h1 {
    font-size: 2.6rem;
  }

  .article-hero h1 {
    font-size: 2.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(6,10,20,0.97);
    backdrop-filter: blur(20px);
    padding: 30px;
    gap: 0;
    border-bottom: 1px solid var(--border-gold);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(100,116,139,0.1);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ranking-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px;
  }

  .ranking-number {
    font-size: 2.4rem;
  }

  .ranking-info .ranking-features {
    justify-content: center;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.8rem;
  }

  .ranking-card {
    padding: 24px;
  }

  .feature-card {
    padding: 30px 24px;
  }
}
