/* ============================================================
   ArenaFoot Community — Pages
   Sincronizado com arenafoot-soul.css
   ============================================================ */

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(13, 16, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--af-line);
}

.light .header,
[data-theme="light"] .header {
  background: rgba(232, 232, 226, 0.92);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--af-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  flex: 0 0 auto;
}

.header-container {
  max-width: 1600px;
  width: 100%;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding-top: 0;
  padding-bottom: 0;
}

.header-start {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.logo-text {
  font-family: var(--af-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.logo-accent {
  color: var(--ui-accent);
}

.header .logo:hover {
  color: var(--ui-accent);
}

.header .nav-link {
  font-family: var(--af-data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-sm);
  transition: color 140ms ease, background-color 140ms ease;
}

.header .nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.055);
}

.header .btn-ghost {
  color: var(--text-muted);
}

.header .btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.055);
}

.header .btn-primary {
  background: var(--ui-accent);
  color: #fff;
  border-color: transparent;
}

.header .btn-primary:hover {
  filter: brightness(1.1);
}

/* === Navigation === */
.nav-public {
  display: none;
  gap: var(--space-1);
  flex-shrink: 1;
  white-space: nowrap;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

@media (min-width: 768px) {
  .nav-public { display: flex; }
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  flex: 0 0 auto;
}
.language-option {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font: 600 11px var(--af-data);
  min-width: 28px;
  min-height: 32px;
  padding: 4px;
  cursor: pointer;
}
.language-option:hover,
.language-option[aria-pressed="true"] {
  color: var(--ui-accent);
  background: var(--ui-accent-soft);
}
.language-option:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}
.header-navigation .nav-link {
  flex: 0 0 auto;
  padding: 6px 5px;
  font-size: 9px;
}
@media (max-width: 1439px) {
  .header .nav-public { display: none; }
  .header .hamburger, #mobile-menu-close { display: flex; }
  .mobile-menu, .mobile-menu-overlay { display: block; }
}
@media (max-width: 768px) {
  .header-actions { display: none; }
  .header-container, .header-start { gap: 8px; }
  .header .logo { font-size: 15px; }
}

/* === Hero === */
.hero {
  padding: var(--space-10) 0;
  text-align: center;
  background:
    radial-gradient(circle at 78% 52%, rgba(34, 197, 94, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--af-line);
}

.light .hero,
[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 78% 52%, rgba(22, 163, 74, 0.06), transparent 28%),
    linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
}

.hero-title {
  font-family: var(--af-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0 auto var(--space-4);
  max-width: 700px;
}

.hero-title .accent {
  color: var(--ui-accent);
}

.light .hero-title,
[data-theme="light"] .hero-title {
  color: var(--text-main);
}

.light .hero-title .accent,
[data-theme="light"] .hero-title .accent {
  color: var(--ui-accent);
}

.hero-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
  text-transform: none;
}

.light .hero-subtitle,
[data-theme="light"] .hero-subtitle {
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* === Status Badge === */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--af-line);
  border-radius: var(--border-radius-sm);
  font-family: var(--af-data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.light .status-badge,
[data-theme="light"] .status-badge {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--af-line);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ui-accent);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.status-dot.beta { background: var(--color-warning); }
.status-dot.em-breve { background: var(--text-muted); }

/* === Section Headers === */
.section-header {
  margin-bottom: var(--space-6);
}

.section-title {
  font-family: var(--af-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.light .section-title,
[data-theme="light"] .section-title {
  color: var(--text-main);
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.light .section-subtitle,
[data-theme="light"] .section-subtitle {
  color: var(--text-muted);
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.feature-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--af-line);
  border-radius: var(--border-radius);
  transition: border-color 160ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  border-color: var(--af-line-strong);
  box-shadow: var(--shadow-md);
}

.light .feature-card,
[data-theme="light"] .feature-card {
  background: var(--bg-card);
  border-color: var(--af-line);
}

.light .feature-card:hover,
[data-theme="light"] .feature-card:hover {
  border-color: var(--af-line-strong);
  box-shadow: var(--shadow-md);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-4);
}

.light .feature-card-icon,
[data-theme="light"] .feature-card-icon {
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
}

.feature-card-title {
  font-family: var(--af-display);
  font-size: var(--text-lg);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.feature-card-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.light .feature-card-text,
[data-theme="light"] .feature-card-text {
  color: var(--text-muted);
}

/* === Footer === */
.footer {
  background: var(--af-surface);
  border-top: 1px solid var(--af-line);
  margin-top: auto;
}

.footer h3 {
  font-family: var(--af-data);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--ui-accent);
}

.light .footer,
[data-theme="light"] .footer {
  background: var(--af-surface);
  border-top-color: var(--af-line);
}

.light .footer h3,
[data-theme="light"] .footer h3 {
  color: var(--text-muted);
}

.light .footer a,
[data-theme="light"] .footer a {
  color: var(--text-muted);
}

.light .footer a:hover,
[data-theme="light"] .footer a:hover {
  color: var(--ui-accent);
}

/* === Auth Pages === */
.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--af-line);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.light .auth-card,
[data-theme="light"] .auth-card {
  background: var(--bg-card);
  border-color: var(--af-line);
  box-shadow: var(--shadow-lg);
}

.light .auth-layout,
[data-theme="light"] .auth-layout {
  /* Auth layout styles are inherited from CSS variables */
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-title {
  font-family: var(--af-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-4);
  font-size: 12px;
  color: var(--text-muted);
}

/* === Admin Layout === */
.admin-layout {
  display: grid;
  grid-template-columns: var(--af-sidebar-width) 1fr;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--af-surface);
  border-right: 1px solid var(--af-line);
  padding: var(--space-4);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.light .admin-sidebar,
[data-theme="light"] .admin-sidebar {
  background: var(--af-surface);
  border-right-color: var(--af-line);
}

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
}

.admin-sidebar-header {
  margin-bottom: var(--space-6);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: rgba(239, 243, 241, 0.58);
  border-radius: var(--border-radius-sm);
  transition: color 140ms ease, background-color 140ms ease;
  text-decoration: none;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.admin-nav-link.active {
  color: #fff;
  background: color-mix(in srgb, var(--ui-accent) 34%, rgba(255, 255, 255, 0.025));
  border: 1px solid color-mix(in srgb, var(--ui-accent) 62%, rgba(255, 255, 255, 0.12));
}

.light .admin-nav-link,
[data-theme="light"] .admin-nav-link {
  color: rgba(23, 27, 24, 0.65);
}

.light .admin-nav-link:hover,
[data-theme="light"] .admin-nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

.light .admin-nav-link.active,
[data-theme="light"] .admin-nav-link.active {
  color: var(--text-main);
  background: color-mix(in srgb, var(--ui-accent) 15%, rgba(0, 0, 0, 0.03));
  border: 1px solid color-mix(in srgb, var(--ui-accent) 40%, rgba(0, 0, 0, 0.08));
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--af-line);
}

.light .admin-sidebar-footer,
[data-theme="light"] .admin-sidebar-footer {
  border-top-color: var(--af-line);
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--af-line);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.light .admin-header,
[data-theme="light"] .admin-header {
  background: var(--bg-surface);
  border-bottom-color: var(--af-line);
}

.admin-content {
  flex: 1;
  padding: var(--space-5);
}

/* === Stats Grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.stat-card {
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--af-line);
  border-radius: var(--border-radius);
  border-top: 3px solid var(--ui-accent);
}

.light .stat-card,
[data-theme="light"] .stat-card {
  background: var(--bg-card);
  border-color: var(--af-line);
  border-top-color: var(--ui-accent);
}

.stat-value {
  font-family: var(--af-data);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--af-data);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* === Page Header === */
.page-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--af-line);
}

.page-title {
  font-family: var(--af-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.light .page-header,
[data-theme="light"] .page-header {
  border-bottom-color: var(--af-line);
}

.light .page-title,
[data-theme="light"] .page-title {
  color: var(--text-main);
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--af-line);
}

.light .faq-item,
[data-theme="light"] .faq-item {
  border-bottom-color: var(--af-line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

.light .faq-question,
[data-theme="light"] .faq-question {
  color: var(--text-main);
}

.faq-answer {
  padding-bottom: var(--space-4);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-chevron {
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--text-muted);
}

.light .faq-chevron,
[data-theme="light"] .faq-chevron {
  color: var(--text-muted);
}

/* === Profile === */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--af-line);
  border-radius: var(--border-radius);
}

.light .profile-header,
[data-theme="light"] .profile-header {
  background: var(--bg-card);
  border-color: var(--af-line);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  background: color-mix(in srgb, var(--ui-accent) 14%, var(--bg-input));
  border: 1px solid color-mix(in srgb, var(--ui-accent) 42%, var(--af-line));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--af-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--ui-accent);
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--af-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
}

.light .profile-name,
[data-theme="light"] .profile-name {
  color: var(--text-main);
}

.profile-username {
  font-size: 12px;
  color: var(--text-muted);
}

.light .profile-username,
[data-theme="light"] .profile-username {
  color: var(--text-muted);
}

.profile-bio {
  margin-top: var(--space-3);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.light .container,
[data-theme="light"] .container {
  /* Container styles are inherited from CSS variables */
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }

.section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}

.layout-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .layout-two-col {
    grid-template-columns: 1fr var(--sidebar-width);
  }
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  align-self: start;
}

.light .sidebar,
[data-theme="light"] .sidebar {
  /* Sidebar styles are inherited from CSS variables */
}

.light .layout-two-col,
[data-theme="light"] .layout-two-col {
  /* Layout two col styles are inherited from CSS variables */
}

/* Animation-ready sections */
.section-header,
.feature-card,
.timeline-item,
.card-hover,
.kanban-column,
.stat-card,
.faq-item {
  will-change: transform, opacity;
}
