/* ============================================
   Suomistrikelush - Retro Glamour Casino Style
   ============================================ */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap");

/* CSS Variables - Retro Glamour Palette */
:root {
  --bg-primary: #1a0f0f;
  --bg-secondary: #2d1f1f;
  --bg-card: #251818;
  --text-primary: #f0e6d3;
  --text-secondary: #c4b8a5;
  --text-muted: #8a7d6d;
  --accent-gold: #d4af37;
  --accent-gold-light: #e8c962;
  --accent-gold-dark: #b8942d;
  --button-primary: #8b0000;
  --button-hover: #a50000;
  --button-secondary: #5c1010;
  --border-gold: #d4af37;
  --shadow-gold: rgba(212, 175, 55, 0.3);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --gradient-gold: linear-gradient(
    135deg,
    #d4af37 0%,
    #e8c962 50%,
    #d4af37 100%
  );
  --gradient-dark: linear-gradient(180deg, #1a0f0f 0%, #2d1f1f 100%);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold-light);
  text-shadow: 0 0 10px var(--shadow-gold);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(26, 15, 15, 0.98) 0%,
    rgba(26, 15, 15, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 2px 10px var(--shadow-gold);
}

/* Navigation */
.nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  background: radial-gradient(
      ellipse at 50% 0%,
      rgba(212, 175, 55, 0.1) 0%,
      transparent 50%
    ),
    var(--gradient-dark);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/hero-image.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-gold);
  color: var(--bg-primary);
}

.btn-secondary {
  background: var(--button-primary);
  color: var(--text-primary);
  border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
  background: var(--button-hover);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-title p {
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* About Banner */
.about-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--button-primary) 0%,
    var(--button-secondary) 100%
  );
  border: 2px solid var(--accent-gold);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 10px 40px var(--shadow-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-banner img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.about-banner p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Game Section */
.game-section {
  background: var(--bg-primary);
  padding: 4rem 0;
}

.game-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-header h2 {
  color: var(--accent-gold);
}

.game-header p {
  color: var(--text-secondary);
}

.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border: 3px solid var(--accent-gold);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 0 50px var(--shadow-gold), 0 20px 60px var(--shadow-dark);
}

.game-wrapper::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-gold);
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0.5;
  filter: blur(20px);
}

.game-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 500px;
  border: none;
  background: #000;
}

/* Feature Cards - Retro Glamour Style */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: linear-gradient(
    145deg,
    var(--bg-card) 0%,
    var(--bg-secondary) 100%
  );
  border: 2px solid var(--accent-gold);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 40px var(--shadow-dark),
    inset 0 1px 0 rgba(212, 175, 55, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold-light);
  box-shadow: 0 20px 60px var(--shadow-dark), 0 0 30px var(--shadow-gold);
}

.feature-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.feature-card h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.feature-card p {
  color: var(--text-secondary);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Disclaimer Section */
.disclaimer-section {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  padding: 4rem 0;
}

.disclaimer-box {
  background: var(--bg-card);
  border: 2px solid var(--button-primary);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.disclaimer-box h2 {
  color: var(--button-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.disclaimer-box p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.disclaimer-box strong {
  color: var(--text-primary);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 3rem 0 2rem;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy span {
  color: var(--accent-gold);
}

/* Age Badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--button-primary);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1rem;
}

/* Decorative Elements */
.gold-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-gold) 50%,
    transparent 100%
  );
  margin: 3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 7rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .about-banner {
    flex-direction: column;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .game-iframe {
    min-height: 350px;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Animations */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--shadow-gold);
  }
  50% {
    box-shadow: 0 0 40px var(--shadow-gold);
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--accent-gold) 0%,
    var(--accent-gold-light) 50%,
    var(--accent-gold) 100%
  );
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

/* Selection */
::selection {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ============================================
   Page Styles (About, Privacy, Terms, etc.)
   ============================================ */

/* Page Hero */
.page-hero {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  padding: 10rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(212, 175, 55, 0.15) 0%,
    transparent 60%
  );
}

.page-hero h1 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  position: relative;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  position: relative;
}

/* Content Box */
.content-box {
  background: var(--bg-card);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 10px 40px var(--shadow-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.content-box h2 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.content-box h3 {
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-box h4 {
  color: var(--accent-gold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-box p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-box a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 3px;
}

.content-box a:hover {
  text-decoration-color: var(--accent-gold);
}

/* Styled List */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.styled-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.styled-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.styled-list li strong {
  color: var(--text-primary);
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.cookie-table th {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.cookie-table td {
  color: var(--text-secondary);
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.cookie-table tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

/* CTA Box */
.cta-box {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--button-primary) 0%,
    var(--button-secondary) 100%
  );
  border: 2px solid var(--accent-gold);
  border-radius: var(--border-radius);
  text-align: center;
}

.cta-box p {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Last Updated */
.last-updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Active Nav Link */
.nav-link.active {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
}

/* Responsive for Content Pages */
@media (max-width: 768px) {
  .page-hero {
    padding: 8rem 1rem 3rem;
  }

  .content-box {
    padding: 1.5rem;
  }

  .cookie-table {
    font-size: 0.9rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* ============================================
   Cookie Popup
   ============================================ */

.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.5rem;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-popup.hidden {
  bottom: -100%;
}

.cookie-popup-content {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(
    145deg,
    var(--bg-card) 0%,
    var(--bg-secondary) 100%
  );
  border: 2px solid var(--accent-gold);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 -10px 40px var(--shadow-dark), 0 0 30px var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.cookie-popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
}

.cookie-popup-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cookie-icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(-5deg);
  }
  75% {
    transform: translateY(-5px) rotate(5deg);
  }
}

.cookie-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cookie-text h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.cookie-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
}

.cookie-text a:hover {
  text-decoration-color: var(--accent-gold);
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cookie-accept,
.cookie-decline {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cookie-decline {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.cookie-decline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Cookie Popup Responsive */
@media (max-width: 768px) {
  .cookie-popup {
    padding: 1rem;
  }

  .cookie-popup-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .cookie-icon {
    font-size: 2.5rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-accept,
  .cookie-decline {
    width: 100%;
  }
}
