/* /public/css/core.css */
/* ----------------------------------------------
   RESET & BASE
   ---------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* fallback, mas js fará scroll suave customizado */
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #1A3A2B; /* verde feltro principal */
  color: #F0F5F2; /* branco gelo */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

/* textura de feltro sutil (overlay) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" /><path d="M10 10 L 90 10 M10 30 L 90 30 M10 50 L 90 50 M10 70 L 90 70 M10 90 L 90 90 M10 10 L 10 90 M30 10 L 30 90 M50 10 L 50 90 M70 10 L 70 90 M90 10 L 90 90" stroke="rgba(255,255,240,0.02)" stroke-width="1.2"/></svg>');
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* container principal */
.container {
  width: min(90%, 1280px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------
   VARIÁVEIS (root) - TEMA POKER
   ---------------------------------------------- */
:root {
  /* cores feltro */
  --color-feltro-dark: #0F2A1F;    /* verde quase preto */
  --color-feltro-main: #1D3B2C;    /* fundo principal */
  --color-feltro-light: #2C5A3C;   /* usado em cards ou hover */
  
  /* destaques premium */
  --color-red: #D32F2F;            /* vermelho cartas */
  --color-gold: #D4AF37;           /* dourado premium */
  --color-ice: #F0F5F2;            /* branco gelo texto */
  --color-ice-dim: #C0D0C5;        /* texto secundário */
  
  /* tipografia */
  --font-primary: 'Inter', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 999px;
  
  /* sombras (elegantes) */
  --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 0 2px rgba(212, 175, 55, 0.2), 0 10px 20px -5px #00000080;
  
  /* transições */
  --transition-fast: 200ms cubic-bezier(0.2, 0.9, 0.4, 1);
  --transition-base: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* container width já usado */
  --container-width: 1280px;
}

/* ----------------------------------------------
   TIPOGRAFIA E LINKS
   ---------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: var(--space-sm); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  text-decoration: none;
  color: var(--color-ice);
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-gold);
}

/* ----------------------------------------------
   COMPONENTES REUTILIZÁVEIS
   ---------------------------------------------- */
/* botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  padding: 0.75rem 1.8rem;
  cursor: pointer;
  transition: all var(--transition-base);
  background: transparent;
  color: var(--color-ice);
  border: 2px solid transparent;
  letter-spacing: 0.3px;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-red);
  color: white;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  background: #B71C1C;
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-gold);
  color: white;
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
}
.btn--secondary:hover {
  background: var(--color-gold);
  color: var(--color-feltro-dark);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--color-ice-dim);
  background: transparent;
  padding: 0.5rem 1.2rem;
  font-weight: var(--font-weight-medium);
}
.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.05);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
}

.btn--huge {
  padding: 1.2rem 3.5rem;
  font-size: 1.4rem;
  border-radius: var(--radius-lg);
}

.btn--small {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

/* cards */
.card {
  background: rgba(15, 42, 31, 0.7); /* feltro mais escuro translúcido */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}

.card:hover {
  border-color: var(--color-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.card-desc {
  color: var(--color-ice-dim);
  font-size: 0.95rem;
  margin-top: var(--space-xs);
}

.card-info strong {
  color: var(--color-gold);
}

/* section header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  font-weight: var(--font-weight-bold);
  padding: 0.2rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.section-subhead {
  font-size: 1.2rem;
  color: var(--color-ice-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ----------------------------------------------
   LAYOUT / HEADER
   ---------------------------------------------- */
.site-header {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,240,0.05);
  background: rgba(26, 58, 43, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-ice);
}
.logo-destaque {
  color: var(--color-gold);
}
.nav-links {
  display: flex;
  gap: var(--space-md);
}
.nav-link {
  font-weight: var(--font-weight-medium);
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.nav-link:hover {
  border-bottom-color: var(--color-gold);
}

/* ----------------------------------------------
   SECTIONS
   ---------------------------------------------- */
.section {
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 2;
}

/* HERO */
.hero {
  padding-top: var(--space-lg);
  overflow-x: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-content {
  max-width: 600px;
}
.hero-title {
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}
.titulo-destaque {
  color: var(--color-gold);
  display: block;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-ice-dim);
  margin-bottom: var(--space-md);
}
.hero-stats {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.stat-item {
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-gold);
  border: 1px solid rgba(212,175,55,0.2);
}
.hero-visual {
  position: relative;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-float, .chip-float {
  font-size: 8rem;
  opacity: 0.4;
  position: absolute;
  animation: float 6s ease-in-out infinite;
}
.card-float {
  top: 20px;
  right: 20px;
  animation-delay: 0.5s;
}
.chip-float {
  bottom: 30px;
  left: 20px;
  font-size: 7rem;
  animation: float 7s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Torneio cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.card--destaque {
  border: 2px solid var(--color-gold);
  background: rgba(212,175,55,0.05);
}
.section-cta-center {
  text-align: center;
}

/* Regras grid */
.regras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-md);
}
.regra-item {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-md);
}
.regra-num {
  font-size: 1rem;
  color: var(--color-gold);
  font-weight: var(--font-weight-bold);
  opacity: 0.7;
  display: block;
  margin-bottom: var(--space-xs);
}
.regra-item h4 {
  margin-bottom: var(--space-xs);
}
.regra-item p {
  color: var(--color-ice-dim);
}

/* CTA final */
.cta-final-section {
  padding: var(--space-lg) 0;
}
.cta-card {
  background: linear-gradient(145deg, #0F2A1F, #1A3A2B);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
}
.cta-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--color-gold);
}
.cta-text {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--color-ice-dim);
}
.cta-micro {
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  opacity: 0.7;
}
.urgency-badge {
  background: var(--color-red);
  color: white;
  font-weight: bold;
  padding: 0.2rem 1.2rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: var(--space-md);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); background-color: #B71C1C; }
}

/* Footer */
.site-footer {
  background: #0A1F15;
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(212,175,55,0.1);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.footer-links {
  display: flex;
  gap: var(--space-md);
}
.footer-links a {
  color: var(--color-ice-dim);
}
.footer-copy {
  text-align: right;
  color: #5a7a68;
}
.footer-small {
  font-size: 0.8rem;
}

/* ----------------------------------------------
   ANIMAÇÕES (fade, slide) 
   ---------------------------------------------- */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}
.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 1s 0.3s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s forwards;
}
.delayed-1 { animation-delay: 0.15s; }
.delayed-2 { animation-delay: 0.3s; }
.delayed-3 { animation-delay: 0.45s; }
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* hover transitions globais */
.btn, .card, .nav-link {
  transition: all var(--transition-base);
}

/* ----------------------------------------------
   RESPONSIVO
   ---------------------------------------------- */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual { display: none; }
  .regras-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  .footer-copy { text-align: center; }
  .nav-links { gap: var(--space-sm); }
}

@media (max-width: 480px) {
  .section { padding: var(--space-lg) 0; }
  .btn--huge {
    padding: 1rem 1.8rem;
    font-size: 1.2rem;
  }
  .header-flex {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* /public/css/core.css - adicionar no final */

/* ----------------------------------------------
   LOGIN PAGE
   ---------------------------------------------- */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-page .site-header {
    flex-shrink: 0;
}

.login-page main {
    flex: 1;
    display: flex;
    align-items: center;
}

.login-summary {
    background: rgba(15, 42, 31, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.summary-item {
    text-align: center;
}

.summary-total {
    grid-column: 1 / -1;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-ice-dim);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    display: block;
}

.summary-update {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-ice-dim);
    margin-top: var(--space-xs);
}

.quick-menu {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.quick-menu-item {
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.quick-menu-item:hover {
    background: var(--color-gold);
    color: var(--color-feltro-dark);
    border-color: var(--color-gold);
}

.login-card {
    background: rgba(15, 42, 31, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.login-title {
    text-align: center;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    font-size: 1.8rem;
}

.login-form-minimal {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-ice-dim);
}

.form-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: var(--color-ice);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
    color: rgba(192, 208, 197, 0.4);
}

.form-error {
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid var(--color-red);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    color: #ffb3b3;
    font-size: 0.9rem;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: var(--space-md);
}

.login-link {
    color: var(--color-ice-dim);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.login-link:hover {
    color: var(--color-gold);
}

/* Responsivo */
@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .quick-menu {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .quick-menu-item {
        width: 100%;
        text-align: center;
    }
    
    .login-card {
        padding: var(--space-md);
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}
