/* ==========================================================================
   Jacolino Games - Design System & Modern Gaming Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --bg-main: #090a0f;
  --bg-card: rgba(16, 20, 31, 0.65);
  --bg-card-hover: rgba(24, 31, 48, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --primary-gold: #f5c542;
  --primary-gold-hover: #ffd700;
  --primary-gold-glow: rgba(245, 197, 66, 0.35);
  
  --accent-cyan: #00f0ff;
  --accent-purple: #9d4edf;
  --accent-emerald: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 197, 66, 0.3);
  --border-cyan: rgba(0, 240, 255, 0.3);
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--primary-gold-glow);
  --shadow-cyan-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient Background Glows */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.12) 0%, rgba(0,0,0,0) 70%);
}

body::after {
  width: 600px;
  height: 600px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(157, 78, 223, 0.15) 0%, rgba(0,0,0,0) 70%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 10, 15, 0.8);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-gold), #b38600);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-gold-glow);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-icon {
  transform: rotate(0deg) scale(1.05);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
  fill: #090a0f;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-gold);
  font-weight: 600;
  display: block;
  margin-top: -4px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--primary-gold), #d49a00);
  color: #090a0f;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.85rem;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 197, 66, 0.6);
  background: linear-gradient(135deg, #ffe066, var(--primary-gold));
}

.btn-header-cyan {
  background: linear-gradient(135deg, var(--accent-cyan), #00a8df);
  color: #090a0f;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-header-cyan:hover {
  background: linear-gradient(135deg, #70f8ff, var(--accent-cyan));
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #ffffff 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Games Section Grid */
.games-section {
  padding: 3rem 0 6rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--primary-gold);
  border-radius: var(--radius-full);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Game Card General Styles */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.game-card.card-cyan-glow:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--shadow-cyan-glow);
}

/* Card Visual Header / Media Area */
.card-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

/* Visual Background Covers with Gradient & Glows */
.media-imperio {
  background: linear-gradient(180deg, rgba(9, 10, 15, 0.3) 0%, rgba(9, 10, 15, 0.95) 100%), 
              radial-gradient(circle at 70% 30%, rgba(245, 197, 66, 0.35), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3), transparent 50%),
              #121624;
}

.media-aviar {
  background: linear-gradient(180deg, rgba(9, 10, 15, 0.3) 0%, rgba(9, 10, 15, 0.95) 100%),
              radial-gradient(circle at 70% 35%, rgba(0, 240, 255, 0.35), transparent 60%),
              radial-gradient(circle at 20% 70%, rgba(16, 185, 129, 0.25), transparent 50%),
              #081726;
}

.media-arena {
  background: linear-gradient(180deg, rgba(9, 10, 15, 0.3) 0%, rgba(9, 10, 15, 0.95) 100%),
              radial-gradient(circle at 50% 40%, rgba(157, 78, 223, 0.3), transparent 60%),
              #0d111a;
}

.media-floresta {
  background: linear-gradient(180deg, rgba(9, 10, 15, 0.3) 0%, rgba(9, 10, 15, 0.95) 100%),
              radial-gradient(circle at 40% 50%, rgba(16, 185, 129, 0.3), transparent 60%),
              #0a1410;
}

.card-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.game-card:hover .card-illustration {
  transform: scale(1.06);
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.badge-active {
  background: rgba(245, 197, 66, 0.2);
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.3);
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.badge-upcoming {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.badge-dev {
  background: rgba(157, 78, 223, 0.15);
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
}

/* Card Content Area */
.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  flex-grow: 1;
}

.card-genre {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-gold);
  font-weight: 700;
}

.card-genre-cyan {
  color: var(--accent-cyan);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Buttons inside cards */
.card-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, var(--primary-gold), #d49a00);
  color: #090a0f;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--primary-gold-glow);
  transition: all 0.3s ease;
}

.btn-play:hover {
  background: linear-gradient(135deg, #ffe066, var(--primary-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(245, 197, 66, 0.6);
}

.btn-play-cyan {
  background: linear-gradient(135deg, var(--accent-cyan), #00a8df);
  color: #090a0f;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-play-cyan:hover {
  background: linear-gradient(135deg, #70f8ff, var(--accent-cyan));
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 240, 255, 0.6);
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: not-allowed;
}

/* Features Grid Section */
.features-section {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 20, 31, 0.4) 50%, transparent 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-box {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--primary-gold);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
  background: rgba(6, 7, 10, 0.95);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 0.5rem;
}

.footer-copy {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }
  
  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 3rem 0 2rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 5px;
  }
}
