/**
 * JOGATEMPO - CSS MODERNO E RESPONSIVO
 * Design System com Tema Claro/Escuro
 * Autor: Desenvolvido para aprovação AdSense
 * Data: Janeiro 2025
 */

/* ================================================
   IMPORTAÇÃO DE FONTES
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ================================================
   VARIÁVEIS CSS - DESIGN SYSTEM
   ================================================ */
:root {
  /* === CORES PRINCIPAIS === */
  --bg-primary: #fafbfc;
  --bg-secondary: #ffffff;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  
  /* === TEXTO === */
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;
  
  /* === CORES DE MARCA === */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;
  --secondary: #2677c2;
  --secondary-hover: #d97706;
  --accent: #d0d7f5;
  --accent-hover: #059669;
  
  /* === ESTADO === */
  --success: #10b981;
  --warning: #4f6ef7;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* === BORDAS === */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;
  --border-dark: #a0aec0;
  
  /* === SOMBRAS === */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* === RAIOS DE BORDA === */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  
  /* === ESPAÇAMENTO === */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* === TIPOGRAFIA === */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* === TRANSIÇÕES === */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* === Z-INDEX === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ================================================
   TEMA ESCURO - DARK MODE
   ================================================ */
[data-theme="dark"] {
  /* === BACKGROUNDS === */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --surface: #1e293b;
  --surface-elevated: #334155;
  
  /* === TEXTO === */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e0;
  --text-muted: #94a3b8;
  --text-inverse: #1a1a1a;
  
  /* === CORES DE MARCA AJUSTADAS === */
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --primary-light: #1e3a8a;
  --secondary: #c2c2c2;
  --secondary-hover: #8d8a85;
  --accent: #34d399;
  --accent-hover: #10b981;
  
  /* === BORDAS === */
  --border-light: #334155;
  --border-medium: #475569;
  --border-dark: #64748b;
  
  /* === SOMBRAS ESCURAS === */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* ================================================
   RESET E BASE STYLES
   ================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ================================================
   UTILITÁRIOS
   ================================================ */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ================================================
   SKIP LINK (ACESSIBILIDADE)
   ================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* ================================================
   COOKIE BANNER
   ================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  backdrop-filter: blur(10px);
}

.cookie-banner:not(.hidden) {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-link {
  color: var(--primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.cookie-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ================================================
   MODAL SYSTEM
   ================================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: var(--space-sm);
  border-radius: var(--radius-full);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--border-light);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

/* ================================================
   COOKIE TOGGLES
   ================================================ */
.cookie-option {
  margin-bottom: var(--space-lg);
}

.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  width: 50px;
  height: 24px;
  background: var(--border-medium);
  border-radius: var(--radius-full);
  position: relative;
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
  margin-top: 2px;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: white;
  top: 2px;
  left: 2px;
  transition: transform var(--transition-fast);
}

.cookie-toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.cookie-toggle input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.cookie-toggle input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-content strong {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.toggle-content p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: var(--z-sticky);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .header {
  background: rgba(30, 41, 59, 0.9);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================
   NAVEGAÇÃO
   ================================================ */
.desktop-nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-md);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ================================================
   HEADER ACTIONS
   ================================================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.05);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: var(--radius-xs);
  transition: all var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ================================================
   MOBILE MENU
   ================================================ */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav-content {
  padding: var(--space-lg);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li {
  margin-bottom: var(--space-sm);
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
}

.hero-text {
  text-align: center;
  color: white;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin: 0 0 var(--space-lg) 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--space-2xl) 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-placeholder {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.button-wrapper {
  text-align: center;
}


.btn-primary {
  margin-top: 20px;
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

.cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  box-shadow: var(--shadow-lg);
}

.cta-primary:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* ================================================
   SECTIONS
   ================================================ */
section {
  padding: var(--space-4xl) 0;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  text-align: center;
  margin: 0 0 var(--space-3xl) 0;
  color: var(--text-primary);
}

.section-actions {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ================================================
   GAME CONTAINER
   ================================================ */
.featured-game-section {
  background: var(--bg-secondary);
}

.game-container {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.game-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: var(--space-xl);
  text-align: center;
}

.game-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-md) 0;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-weight: 600;
}

.game-start,
.game-playing,
.game-end {
  padding: var(--space-2xl);
}

.game-tumb {
    display: flex;
    flex-direction: column;
}

.game-intro h4 {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--space-lg) 0;
  text-align: center;
}

.game-intro ol {
  max-width: 400px;
  margin: 0 auto var(--space-2xl) auto;
}

.game-intro li {
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.photo-container {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.photo-display {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.photo-placeholder {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.photo-description {
  font-size: var(--font-size-lg);
  font-weight: 500;
  margin: 0;
}

.answer-options h4 {
  text-align: center;
  margin: 0 0 var(--space-xl) 0;
  font-size: var(--font-size-lg);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto var(--space-2xl) auto;
}

.option-btn {
  padding: var(--space-lg);
  background: var(--surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.option-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.option-btn.correct {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.option-btn.incorrect {
  background: var(--error);
  border-color: var(--error);
  color: white;
}

.feedback {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.feedback-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.feedback-icon {
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
}

.feedback-text strong {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-lg);
}

.feedback-content.correct .feedback-text strong {
  color: var(--success);
}

.feedback-content.incorrect .feedback-text strong {
  color: var(--error);
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.final-score {
  text-align: center;
}

.final-score h4 {
  font-size: var(--font-size-2xl);
  margin: 0 0 var(--space-lg) 0;
  color: var(--success);
}

.final-score p {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--space-md) 0;
}

#final-score {
  font-weight: 700;
  color: var(--primary);
}

.score-message {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--space-2xl) 0;
  font-weight: 500;
}

.end-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ================================================
   CARDS GRID
   ================================================ */
.games-grid,
.articles-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.game-card,
.article-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.game-card:hover,
.article-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.game-card:focus,
.article-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-xl);
}

.card-thumbnail {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumbnail-placeholder {
  font-size: 4rem;
  opacity: 0.8;
}

.card-category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: var(--space-xl);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 0 0 var(--space-md) 0;
  line-height: 1.3;
}

.card-description {
  color: var(--text-secondary);
  margin: 0 0 var(--space-lg) 0;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.difficulty,
.duration,
.card-date,
.card-reading-time {
  background: var(--bg-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.card-author {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.card-btn {
  width: 100%;
}

.coming-soon {
  opacity: 0.7;
}

.coming-soon:hover {
  transform: none;
}

/* ================================================
   ABOUT & CONTACT SECTIONS
   ================================================ */
.about-section {
  background: var(--bg-secondary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.about-features {
  display: grid;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  text-align: left;
}

.feature-icon {
  font-size: var(--font-size-3xl);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
}

.feature-text p {
  margin: 0;
  color: var(--text-secondary);
}

.contact-content {
  display: grid;
  gap: var(--space-3xl);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--space-lg) 0;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}


.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: var(--font-size-xl);
}

.contact-method strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-method p {
  margin: 0;
  color: var(--text-secondary);
}

.contact-method a {
  color: var(--primary);
  text-decoration: none;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* ================================================
   FORMS
   ================================================ */
.contact-form {
  background: var(--surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control.error {
  border-color: var(--error);
}

.form-error {
  display: none;
  color: var(--error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-content {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0 0 var(--space-lg) 0;
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  font-size: var(--font-size-xl);
  transition: transform var(--transition-fast);
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
}

.footer-bottom p {
  margin: var(--space-sm) 0;
  font-size: var(--font-size-sm);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Mobile First - já definido acima */

/* Tablet */
@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-xl);
  }
  
  .cookie-banner-content {
    flex-wrap: nowrap;
  }
  
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .games-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-features {
    grid-template-columns: repeat(1, 1fr);
  }

 
}

/* Desktop */
@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr 300px;
    text-align: left;
  }
  
  .hero-text {
    text-align: left;
  }
  
  .hero-actions {
    justify-content: flex-start;
  }
  
  .games-grid,
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .about-features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-5xl);
  }
  
  .section-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-placeholder {
    width: 250px;
    height: 250px;
    font-size: 5rem;
  }
}

@media (max-width: 768px) {
    .hero-placeholder { 
        display: none;
    }
}

/* ================================================
   ANIMATIONS E MICRO-INTERAÇÕES
   ================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.cta-primary {
  animation: pulse 2s infinite;
}

.cta-primary:hover {
  animation: none;
}

/* ================================================
   ACCESSIBILIDADE E MOTION PREFERENCES
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cta-primary {
    animation: none;
  }
}

/* Focus indicators para navegação por teclado */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  .header,
  .mobile-nav,
  .cookie-banner,
  .modal,
  .hero,
  .footer {
    display: none !important;
  }
  
  body {
    color: black;
    background: white;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  section {
    padding: 1rem 0;
  }
  
  .card {
    break-inside: avoid;
  }
}

/* ================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================ */
.game-container,
.card,
.modal-content {
  contain: layout style;
}

img,
video {
  will-change: transform;
}

.mobile-nav,
.modal {
  will-change: transform, opacity;
}

/* ================================================
   DARK MODE SPECIFIC ADJUSTMENTS
   ================================================ */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1e3a8a, #777675);
}

[data-theme="dark"] .cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

[data-theme="dark"] .card-thumbnail {
  background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
}

[data-theme="dark"] .photo-placeholder,
[data-theme="dark"] .hero-placeholder,
[data-theme="dark"] .thumbnail-placeholder {
  filter: brightness(0.8);
}
