﻿/* FairPlay Score - CSS simples para visual semelhante ao original */
:root {
  --bg: #0b0b0c;
  --bg-alt: #0f1115;
  --fg: #e8eaed;
  --muted: #a1a1aa;
  --border: #2a2a2f;
  --primary: #16a34a;
  --secondary: #0ea5e9;
  --accent: #a855f7;
  --danger: #ef4444;
}
/* Tema Claro (aplicado quando html.theme-light esta presente) */
html.theme-light {
  --bg: #f7f7f8;
  --bg-alt: #ffffff;
  --fg: #0b0b0c;
  --muted: #5f6368;
  --border: #e5e7eb;
  --primary: #16a34a;
  --secondary: #0ea5e9;
  --accent: #7c3aed;
  --danger: #dc2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(11,11,12,0.75); border-bottom: 1px solid var(--border); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand.small .brand-badge { width: 36px; height: 36px; }
.brand-badge { width: 48px; height: 48px; border-radius: 12px; background: transparent; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-weight: 800; font-size: 18px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-user { font-size: 12px; }
.nav { display: none; gap: 24px; align-items: center; }
.nav a { color: var(--muted); transition: .2s color; }
.nav a:hover { color: var(--fg); }
@media (min-width: 768px) { .nav { display: inline-flex; } }
@media (orientation: landscape) { .nav { display: inline-flex; } .nav-toggle { display: none; } }
/* Nav movel ao abrir */
.nav[data-open="true"] { position: absolute; top: 60px; right: 16px; display: flex; flex-direction: column; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 10px; gap: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.35); z-index: 100; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--fg); }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.theme-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--fg); margin-right: 8px; }
@media (min-width: 768px) { .theme-icon-btn { display: none; } }
.icon-moon { color: #ffffff; }
html.theme-light .icon-moon { color: #007bdb; }
.icon-sun { color: #ffd54a; }
/* Header variacao clara */
.theme-light .site-header { background: rgba(255,255,255,0.75); border-bottom-color: #e5e7eb; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; transition: .2s background,.2s color,.2s border-color,.2s transform; }
.btn:hover { transform: translateY(-1px); }
.btn-hero { background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #000000; }
.btn-outline { border-color: var(--border); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: #3a3a40; background: rgba(255,255,255,0.03); }
.btn-contrast { background: #fff; color: #111; }
.btn-outline-contrast { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-contrast:hover { background: rgba(255,255,255,0.12); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,12,0.95), rgba(11,11,12,0.8), rgba(11,11,12,0.95)); }
.hero-content { position: relative; z-index: 1; padding: 96px 16px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(22, 163, 74, 0.12); color: #7ee787; border: 1px solid rgba(22,163,74,0.25); font-weight: 600; margin-bottom: 16px; }
.pill.alt { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0; }
.gradient-text { background: linear-gradient(135deg, var(--secondary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { color: var(--muted); font-size: clamp(18px, 2.5vw, 22px); max-width: 720px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; max-width: 640px; margin: 48px auto 0; }
.stat-number { font-weight: 800; font-size: clamp(24px, 4.5vw, 40px); }
.stat-number.primary { color: var(--primary); }
.stat-number.secondary { color: var(--secondary); }
.stat-number.accent { color: var(--accent); }
.stat-label {  color: var(--muted); font-size: 14px;  color: var(--muted); }
.orb { position: absolute; filter: blur(60px); border-radius: 999px; opacity: .4; }
.orb-left { top: 22%; left: 40px; width: 320px; height: 320px; background: rgba(22,163,74,0.35); }
.orb-right { right: 40px; bottom: 18%; width: 420px; height: 420px; background: rgba(14,165,233,0.28); }

/* Sections */
.section { padding: 88px 0; }
.bg-alt { background: #121418; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-header h2 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 8px; }
.section-header p { color: var(--muted); margin: 0; }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,0.85); }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 20px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.grid-4 { grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.card { background: #0f1115; border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: .2s transform,.2s box-shadow; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.icon-badge { width: 48px; height: 48px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #000000; font-weight: 800; margin-bottom: 12px; }
.card h3 { margin: 6px 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

/* Steps */
.step-card { position: relative; overflow: hidden; }
.step-number { position: absolute; top: -14px; left: -14px; width: 48px; height: 48px; border-radius: 999px; background: linear-gradient(135deg, #22d3ee, #22c55e); color: #000000; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,0.35); }

/* CTA */
.cta { position: relative; background: radial-gradient(1200px 600px at 20% 0%, rgba(99,102,241,0.25), transparent 60%), linear-gradient(135deg, #0ea5e9, #a855f7); }
.cta .container { position: relative; z-index: 1; }
.center-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.cta-bullets { text-align: center; margin-top: 14px; color: rgba(255,255,255,0.85); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0f1115; }
.footer-inner { display: grid; gap: 24px; grid-template-columns: repeat(1, minmax(0,1fr)); padding: 36px 0 16px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.footer-col h4 { margin: 0 0 8px; font-size: 16px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 36px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg-alt);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: .2s border-color, .2s box-shadow;
}
/* Forca os controles no modo escuro a usarem o tema (alguns navegadores/Tailwind Forms impoem #fff/#6b7280) */
html:not(.theme-light) input[type="text"],
html:not(.theme-light) input[type="email"],
html:not(.theme-light) input[type="password"],
html:not(.theme-light) input[type="date"],
html:not(.theme-light) input[type="number"],
html:not(.theme-light) select,
html:not(.theme-light) textarea {
  background-color: var(--bg-alt) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: var(--border) !important;
}
/* Legibilidade em modo escuro para selects e suas opcoes */
html:not(.theme-light) select,
html:not(.theme-light) select option,
html:not(.theme-light) select optgroup {
  color: var(--fg) !important;
  background: var(--bg-alt) !important;
}
/* Forca contraste do valor selecionado (Tailwind Forms costuma aplicar cinza) */
html:not(.theme-light) select,
html:not(.theme-light) #game_id,
html:not(.theme-light) #minute,
html:not(.theme-light) #second,
html:not(.theme-light) #half {
  color: #fff !important;
  -webkit-text-fill-color: #fff; /* WebKit/Blink */
  opacity: 1 !important; /* Evita opacidade reduzida */
}
/* Placeholder de select (opcao vazia selecionada) com contraste maximo no modo escuro */
html:not(.theme-light) select:has(option[value=""]:checked) {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  opacity: 1;
}
/* Fallback para navegadores sem :has usando :invalid (requer atributo required no select) */
html:not(.theme-light) select#game_id:invalid,
html:not(.theme-light) select#minute:invalid,
html:not(.theme-light) select#second:invalid,
html:not(.theme-light) select#half:invalid {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
/* Placeholder de inputs e textarea no modo escuro: cor branca e opacidade total */
html:not(.theme-light) input::placeholder,
html:not(.theme-light) textarea::placeholder,
html:not(.theme-light) input::-webkit-input-placeholder,
html:not(.theme-light) textarea::-webkit-input-placeholder,
html:not(.theme-light) input::-moz-placeholder,
html:not(.theme-light) textarea::-moz-placeholder,
html:not(.theme-light) input:-ms-input-placeholder,
html:not(.theme-light) textarea:-ms-input-placeholder {
  color: #ffffff !important;
  opacity: 1 !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #3a3a40;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
/* Garante texto branco ao digitar no modo escuro (sobrepoe Tailwind Forms) */
html:not(.theme-light) input:focus,
html:not(.theme-light) textarea:focus,
html:not(.theme-light) select:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
label {  display:block; font-weight: 600; margin: 0 0 6px;  color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .form-row.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.helper { color: var(--muted); font-size: 14px; margin-top: 6px; }
.error { color: var(--danger); font-size: 14px; margin-top: 6px; }
.actions { display:flex; gap: 12px; align-items:center; }

/* Tailwind compatibility color mappings to theme */
.text-textPrimary { color: var(--fg) !important; }
.text-textSecondary { color: var(--muted) !important; }
.text-primary { color: var(--secondary) !important; }
.text-positive { color: var(--primary) !important; }
.text-negative { color: var(--danger) !important; }
.bg-white { background: var(--bg-alt) !important; color: var(--fg); }
.bg-primary { background: linear-gradient(135deg, var(--secondary), var(--accent)) !important; color: #0b0b0c !important; }
.bg-secondary { background: var(--primary) !important; color: #0b0b0c !important; }
.bg-negative { background: var(--danger) !important; color: #fff !important; }
.bg-positive { background: var(--primary) !important; color: #0b0b0c !important; }
.border-gray-200 { border-color: var(--border) !important; }
.border-gray-300 { border-color: var(--border) !important; }
.hover\:bg-primary\/90:hover { filter: brightness(0.95); }
.hover\:bg-negative\/90:hover { filter: brightness(0.95); }

/* Game cards layout fix */
.game-card { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .game-card { grid-template-columns: 1fr auto; align-items: center; } }
.game-teams { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 16px; width: 100%; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Feed card header */
.feed-card-header { display: block; }
.feed-card-header + * { margin-top: 0; }
.feed-match { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 12px; }
.feed-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start; margin-top: 10px; }
.feed-media img, .feed-media video { display:block; width:100%; height:auto; }
.feed-media video { max-height: 480px; background: #000; }

.comment-trigger { background: transparent; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: .2s all; }
.comment-trigger .material-icons { font-size: 18px; }
.comment-trigger:hover { color: var(--secondary); border-color: var(--secondary); }
.comment-trigger--empty { border-style: dashed; opacity: 0.85; }
.comment-trigger--empty:hover { opacity: 1; }

.mobile-bottom-nav { display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 140; background: rgba(12,12,13,0.92); border: 1px solid var(--border); border-radius: 18px; padding: 10px 18px; box-shadow: 0 16px 30px rgba(0,0,0,0.45); backdrop-filter: blur(16px); transition: .25s opacity,.25s transform; width: min(480px, calc(100% - 32px)); justify-content: space-between; gap: 0; }
.mobile-bottom-nav .bottom-nav-btn { position: relative; background: transparent; border: none; color: var(--fg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; min-width: 0; transition: .2s color; flex: 1; text-align: center; }
.mobile-bottom-nav .bottom-nav-btn .material-icons { font-size: 26px; }
.mobile-bottom-nav .bottom-nav-btn span:last-child { font-weight: 600; }
.mobile-bottom-nav .bottom-nav-btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; border-radius: 12px; }
.mobile-bottom-nav .bottom-nav-btn:hover { color: var(--secondary); }
html.theme-light .mobile-bottom-nav { background: rgba(255,255,255,0.92); border-color: rgba(0,0,0,0.1); box-shadow: 0 18px 30px rgba(0,0,0,0.18); }
html.theme-light .mobile-bottom-nav .bottom-nav-btn { color: #000000; }
.mobile-bottom-nav[data-hidden="true"] { opacity: 0; pointer-events: none; transform: translate(-50%, 40px); }
.bottom-nav-badge { position: absolute; top: 6px; right: 18px; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--secondary); color: #000000; font-size: 10px; font-weight: 700; line-height: 1; }
html.theme-light .bottom-nav-badge { background: var(--secondary); color: #000000; }

/* Avatar button inside mobile bottom nav */
.mobile-bottom-nav .bottom-nav-btn.bottom-nav-user { padding-top: 6px; padding-bottom: 6px; }
.mobile-bottom-nav .bottom-nav-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.06); box-shadow: 0 2px 8px rgba(0,0,0,0.45); display: block; margin-bottom: 4px; }
html.theme-light .mobile-bottom-nav .bottom-nav-avatar { border-color: rgba(0,0,0,0.06); }
@media (max-width: 420px) {
  .mobile-bottom-nav .bottom-nav-avatar { width: 32px; height: 32px; }
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .has-bottom-nav main { padding-bottom: 108px; }
}

.desktop-top-nav { display: none; position: sticky; top: 0; z-index: 130; width: 100%; background: rgba(10,10,11,0.95); border-bottom: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(12px); padding: 12px 24px; }
html.theme-light .desktop-top-nav { background: rgba(255,255,255,0.96); border-color: rgba(0,0,0,0.06); }
.desktop-top-nav__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.top-nav-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--fg); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; font-weight: 600; padding: 8px 18px; cursor: pointer; transition: .2s color,.2s border-color,.2s background; }
.top-nav-btn .material-icons { font-size: 20px; }
.top-nav-btn span:last-child { font-size: 12px; }
.top-nav-btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.top-nav-btn:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(255,255,255,0.06); }
.desktop-top-nav .bottom-nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.12); }
html.theme-light .desktop-top-nav .bottom-nav-avatar { border-color: rgba(0,0,0,0.08); }
.desktop-top-nav .bottom-nav-badge { top: -4px; right: 4px; }

@media (min-width: 769px) {
  .desktop-top-nav { display: block; }
}

.bottom-nav-sheet { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-end; justify-content: center; }
.bottom-nav-sheet[hidden] { display: none; }
.bottom-nav-sheet.is-open { display: flex; }
.bottom-nav-sheet__backdrop { position: absolute; inset: 0; background: rgba(10,10,11,0.65); opacity: 0; transition: opacity .25s ease; }
html.theme-light .bottom-nav-sheet__backdrop { background: rgba(0,0,0,0.45); }
.bottom-nav-sheet.is-open .bottom-nav-sheet__backdrop { opacity: 1; }
.bottom-nav-sheet__panel { position: relative; width: min(520px, 100%); height: 65vh; max-height: 85vh; background: var(--bg-alt); color: var(--fg); border-radius: 18px 18px 0 0; border: 1px solid var(--border); box-shadow: 0 -16px 36px rgba(0,0,0,0.4); transform: translateY(110%); transition: transform .28s ease; padding: 22px; display: flex; flex-direction: column; gap: 16px; touch-action: none; }
.bottom-nav-sheet.is-open .bottom-nav-sheet__panel { transform: translateY(0); }
/* Diminuir somente o bottom sheet de notificações */
.bottom-nav-sheet[data-bottom-sheet="notifications"] .bottom-nav-sheet__panel {
  height: 28vh !important;     /* reduzido para 28vh conforme solicitado */
  max-height: 72vh !important; /* evita ocupar a tela inteira em displays grandes */
  min-height: 28vh !important; /* evita ficar muito pequeno em telas pequenas */
}
.bottom-nav-sheet[data-bottom-sheet="filters"] .bottom-nav-sheet__panel {
  height: 28vh;         /* ou outro valor que preferir */
  max-height: 60vh;     /* opcional */
  min-height: 32vh;     /* opcional */
}
.bottom-nav-sheet__header { display: flex; align-items: center; justify-content: center; }
.bottom-nav-sheet__title { margin: 0; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bottom-nav-sheet__handle { width: 48px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.2); margin: 0 auto 6px; }
html.theme-light .bottom-nav-sheet__handle { background: rgba(0,0,0,0.15); }
.bottom-nav-sheet__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding-right: 6px;
}
.bottom-nav-sheet__link { display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 13px; transition: .2s all; }
.bottom-nav-sheet__link:hover { border-color: var(--secondary); color: var(--secondary); }
html.theme-light .bottom-nav-sheet__panel { background: #ffffff; border-color: rgba(0,0,0,0.08); box-shadow: 0 -18px 30px rgba(0,0,0,0.18); }
html.theme-light .bottom-nav-sheet__link { background: #f5f5f5; color: #111; border-color: rgba(0,0,0,0.08); }
html.theme-light .bottom-nav-sheet__link:hover { border-color: var(--secondary); color: var(--secondary); }
.filter-icons { display: flex; justify-content: space-around; gap: 12px; }
.filter-icon { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); font-weight: 600; }
.filter-icon .material-icons { font-size: 30px; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.filter-icon span:last-child { text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.filter-icon:hover { color: var(--secondary); }
.filter-icon:hover .material-icons { background: rgba(14,165,233,0.18); }
html.theme-light .filter-icon { color: #0b0b0c; }
html.theme-light .filter-icon .material-icons { background: rgba(0,0,0,0.06); }
.bottom-nav-notifications { display: flex; flex-direction: column; gap: 12px; }
.bottom-nav-notification-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bottom-nav-notification-item { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); transition: .2s border-color,.2s box-shadow; }
.bottom-nav-notification-item.is-unread { border-color: var(--secondary); box-shadow: 0 0 0 1px rgba(14,165,233,0.35); }
.bottom-nav-notification-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.bottom-nav-notification-link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 12px;
}
.bottom-nav-notification-title { font-size: 13px; font-weight: 600; color: var(--fg); }
.bottom-nav-notification-excerpt { font-size: 12px; color: var(--muted); line-height: 1.4; }
.bottom-nav-notification-time { font-size: 11px; color: var(--muted); align-self: flex-end; }
.bottom-nav-notification-action {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bottom-nav-notification-action::after {
  content: 'arrow_forward';
  font-family: 'Material Icons';
  font-size: 16px;
  line-height: 1;
}
.bottom-nav-notification-empty { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }

.orientation-lock { position: fixed; inset: 0; z-index: 300; background: rgba(6,6,7,0.95); color: #fff; display: none; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.orientation-lock[hidden] { display: none; }
.orientation-lock.is-active { display: flex; }
.orientation-lock__content { max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.orientation-lock__content .material-icons { font-size: 64px; color: var(--secondary); }
.orientation-lock__content p { margin: 0; font-size: 16px; line-height: 1.5; }
html.theme-light .orientation-lock { background: rgba(255,255,255,0.95); color: #000000; }
html.theme-light .orientation-lock__content .material-icons { color: var(--secondary); }

.comment-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.comment-sheet[hidden] { display: none; }
.comment-sheet__backdrop { position: absolute; inset: 0; background: rgba(10,10,11,0.65); opacity: 0; transition: opacity .25s ease; }
html.theme-light .comment-sheet__backdrop { background: rgba(0,0,0,0.45); }
.comment-sheet__panel { position: relative; width: min(640px, 100%); height: 65vh; max-height: 65vh; min-height: 65vh; background: var(--bg-alt); color: var(--fg); border-radius: 24px 24px 0 0; border: 1px solid var(--border); box-shadow: 0 -16px 40px rgba(0,0,0,0.45); transform: translateY(100%); transition: transform .28s ease; padding: 24px; display: flex; flex-direction: column; gap: 18px; touch-action: none; }
.sentiment-option {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transition: border-color .2s ease;
  cursor: pointer;
}
.sentiment-option input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: transparent;
  display: inline-grid;
  place-items: center;
}
.sentiment-option input[type="radio"]::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  transform: scale(0);
  transition: transform .15s ease;
}
.sentiment-option input[type="radio"]:checked {
  border-color: #2563eb;
}
.sentiment-option input[type="radio"]:checked::after {
  transform: scale(1); /* bolinha interna cresce e fica toda azul */
}
.sentiment-option.is-selected {
  background: rgba(37,99,235,0.18);
  box-shadow: 37 0 0 1px rgba(37,99,235,0.35);
}
html.theme-light .sentiment-option {
  border-color: #d6d9e1;
  background: #ffffff;
}
html.theme-light .sentiment-option.is-selected {
  background: rgba(37,99,235,0.12);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

.comment-sheet__handle { width: 52px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.18); margin: 0 auto 8px; }
.comment-sheet.is-open .comment-sheet__backdrop { opacity: 1; }
.comment-sheet.is-open .comment-sheet__panel { transform: translateY(0); }
.comment-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-sheet__title { margin: 0; font-size: 18px; font-weight: 600; }
.comment-sheet__close { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .2s all; }
.comment-sheet__close:hover { color: var(--fg); border-color: var(--muted); }
.comment-sheet__meta { margin: 0; }
.comment-sheet__content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; touch-action: pan-y; overscroll-behavior: contain; }
.comment-item { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.comment-item__avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #000000; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; text-transform: uppercase; flex-shrink: 0; }
.comment-item__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment-item__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.comment-item__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.comment-item__header strong { color: var(--fg); font-size: 14px; }
.comment-item__body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg); word-break: break-word; }
.comment-item__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.comment-reaction-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: .2s all; font-size: 13px; }
.comment-reaction-button .material-icons { font-size: 18px; }
.comment-reaction-button:hover { border-color: var(--secondary); color: var(--secondary); }
.comment-reaction-button.is-active { font-weight: 600; }
.comment-reaction-button.is-active.positive { border-color: rgba(22,163,74,0.65); color: var(--primary); background: rgba(22,163,74,0.12); }
.comment-reaction-button.is-active.negative { border-color: rgba(239,68,68,0.65); color: var(--danger); background: rgba(239,68,68,0.12); }
.comment-reply-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: .2s all; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.comment-reply-toggle .material-icons { font-size: 16px; }
.comment-reply-toggle:hover { border-style: solid; border-color: var(--secondary); color: var(--secondary); }
.comment-replies { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.comment-reply { display: flex; gap: 10px; align-items: flex-start; }
.comment-reply__avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #000000; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; text-transform: uppercase; flex-shrink: 0; }
.comment-reply__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment-reply__body { flex: 1; border-left: 2px solid var(--border); padding-left: 12px; background: var(--bg); border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.comment-reply__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.comment-reply__header strong { color: var(--fg); font-size: 11px; }
.comment-reply__body p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg); word-break: break-word; }
.comment-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 32px 0; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form__textarea { width: 100%; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--fg); padding: 6px 12px; min-height: 32px; line-height: 1.4; resize: vertical; }
html.theme-light .comment-form__textarea { background: #ffffff; color: #000000; }
.comment-form__actions { display: flex; justify-content: flex-end; }
.comment-reply-form { margin-top: 12px; }

.profile-avatar-block { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #000; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; text-transform: uppercase; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-fields { flex: 1 1 240px; min-width: 220px; }

body.comment-sheet-open { overflow: hidden; }
body.orientation-locked { overflow: hidden; }
.feed-heading-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.feed-heading-title { margin:0; font-size:22px; }
.feed-clear-filter { white-space:nowrap; font-size:14px; font-weight:600; }
.feed-clear-filter:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .feed-heading-bar { flex-wrap:wrap; }
  .feed-heading-title { font-size:20px; }
  .feed-clear-filter { width:100%; text-align:center; }
}

/* Force native dark UI for form controls in dark mode */
html:not(.theme-light) input,
html:not(.theme-light) select,
html:not(.theme-light) textarea {
  color-scheme: dark !important;
  caret-color: #fff;
}

/* Reforco especifico para navegadores Chromium (Chrome/Edge/Brave) */
@supports (-webkit-appearance: none) {
  html:not(.theme-light) select,
  html:not(.theme-light) input,
  html:not(.theme-light) textarea {
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
  }
  html:not(.theme-light) select option {
    color: #fff !important;
    background: var(--bg-alt) !important;
  }
}



.profile-nav { position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%); display: none; background: rgba(12,12,13,0.96); border: 1px solid var(--border); border-radius: 18px; padding: 24px 20px 18px; min-width: min(360px, calc(100% - 32px)); z-index: 150; box-shadow: 0 16px 30px rgba(0,0,0,0.45); color: var(--fg); }
.profile-nav[data-open='true'] { display: block; }
.profile-nav__close { position: absolute; top: 8px; right: 8px; background: transparent; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.profile-nav__close:hover { color: var(--fg); }
.profile-nav__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.profile-nav__title { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.profile-nav__content { display: flex; flex-direction: column; gap: 12px; color: var(--fg); }
.profile-nav__content a,
.profile-nav__button { color: var(--fg); font-weight: 600; text-align: center; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(248,250,252,0.18); transition: .2s all; text-decoration: none; background: rgba(248,250,252,0.06); }
.profile-nav a:hover { border-color: var(--secondary); color: var(--secondary); }
.profile-nav form { margin: 0; }
.profile-nav__button { width: 100%; cursor: pointer; }
.profile-nav__button:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(14,165,233,0.12); }
.profile-nav__logout { width: 100%; border: none; background: rgba(239,68,68,0.18); color: #fecaca; font-weight: 700; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
html.theme-light .profile-nav { background: rgba(255,255,255,0.96); border-color: rgba(0,0,0,0.1); box-shadow: 0 18px 30px rgba(0,0,0,0.18); color: #0b0b0c; }
html.theme-light .profile-nav__content { display: flex; flex-direction: column; gap: 10px; }
html.theme-light .profile-nav__content a,
html.theme-light .profile-nav__button { color: #0b0b0c; border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.02); }
html.theme-light .profile-nav__logout { background: rgba(239,68,68,0.18); color: #b91c1c; }
html.theme-light .profile-nav__title { color: rgba(15,23,42,0.6); }
html.theme-light .profile-nav__close { color: rgba(15,23,42,0.5); }
html.theme-light .profile-nav__close:hover { color: rgba(15,23,42,0.8); }
html:not(.theme-light) .profile-nav,
html:not(.theme-light) .profile-nav__content { color: rgba(248,250,252,0.94); }
html:not(.theme-light) .profile-nav__title { color: rgba(203,213,225,0.9); }
html:not(.theme-light) .profile-nav a,
html:not(.theme-light) .profile-nav__button { border-color: rgba(148,163,184,0.4); background: rgba(248,250,252,0.05); box-shadow: 0 1px 3px rgba(15,23,42,0.35) inset; }
html:not(.theme-light) .profile-nav__button:hover,
html:not(.theme-light) .profile-nav a:hover { border-color: rgba(59,130,246,0.9); color: #e0e7ff; background: rgba(59,130,246,0.15); }
html:not(.theme-light) .profile-nav__logout { background: rgba(239,68,68,0.25); color: #fecaca; border-color: rgba(239,68,68,0.4); }
html:not(.theme-light) .profile-nav__close { color: rgba(248,250,252,0.65); }
html:not(.theme-light) .profile-nav__close:hover { color: rgba(248,250,252,0.9); }
.guest-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.guest-actions .guest-link { color: var(--fg); font-weight: 600; text-decoration: none; }
html.theme-light .guest-actions .guest-link { color: #0b0b0c; }







.comment-sheet__handle { width: 52px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.18); margin: 0 auto 8px; }
html.theme-light .comment-sheet__handle { background: rgba(0,0,0,0.15); }

.admin-feed-chart-card { padding: 16px; border: 1px solid rgba(15,23,42,0.08); border-radius: 20px; background: rgba(15,23,42,0.04); }
.admin-feed-chart-card canvas { width: 100%; height: 220px; }
.admin-feed-chart { width: 100%; height: 6px; background: #e2e8f0; border-radius: 9999px; overflow: hidden; }
.admin-feed-chart__bar { display: block; width: var(--chart-percent, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%); transition: width .4s ease; }
 .admin-feed-chart__percent { font-size: 12px; font-weight: 700; color: var(--fg); min-width: 42px; text-align: right; }
html:not(.theme-light) .admin-feed-chart-card { background: rgba(15,23,42,0.45); border-color: rgba(148,163,184,0.25); }
html:not(.theme-light) .admin-feed-chart { background: rgba(148,163,184,0.35); }

