/* Insiders GG - Light Theme (Ice White) */
:root {
    --bg-color: #EFEFEF;
    /* Gelo / Off-White */
    --text-color: #111111;
    --accent-color: #000000;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --hover-bg: #eeeeee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
} */
body {
    font-family: 'Outfit', sans-serif;
    /* Keep font */
}


a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1,
h2,
h3 {
    letter-spacing: -0.05em;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Cards & Sections */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Ranking Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: var(--hover-bg);
}

.rank-num {
    font-weight: bold;
    width: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 12px;
    /* Smoother corners */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--text-color);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--hover-bg);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #fff;
}

/* Footer */
footer {
    text-align: center;
    color: #666;
    padding: 40px 0;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Utility */
.flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 32px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #eee;
    border: 1px solid #ccc;
}

.status-success {
    border-color: #000;
    color: #000;
    background: #e0ffe0;
}

/* ==============================================================
   DARK MODE (Smart Invert)
   ============================================================== */
html.dark {
    filter: invert(1) hue-rotate(180deg);
    background-color: #EFEFEF;
    /* Must match the light body bg to invert correctly to dark */
}

/* Re-invert media and specific areas so they look normal in dark mode */
html.dark img:not(.dark-keep),
html.dark video,
html.dark canvas,
html.dark [style*="background-image"],
html.dark .no-invert {
    filter: invert(1) hue-rotate(180deg);
}

/* Ensure the background stays visually consistent across the viewport */
html.dark body {
    background-color: #EFEFEF;
    /* Tailwind bg-[#EFEFEF] is defined inline, enforcing it here ensures inversion works */
}

/* ==============================================================
   STREAMER MODE (Privacy)
   ============================================================== */
/* Em vez de desfocar (que cansa a vista), o dado é coberto por uma placa
   neutra com um ícone de olho cortado. Nada do conteúdo é exibido. */
body.streamer-mode .sensitive,
html[style*="--sm"] .sensitive {
    /* Sem mexer no display: os .sensitive são cards e blocos do layout.
       O conteúdo some, mas a caixa continua ocupando o mesmo espaço. */
    position: relative !important;
    color: transparent !important;
    text-shadow: none !important;
    pointer-events: none !important;
    user-select: none !important;
    min-height: 1.5em;
}

/* Esconde imagens, ícones e qualquer filho */
body.streamer-mode .sensitive > *,
html[style*="--sm"] .sensitive > * {
    visibility: hidden !important;
}

/* A placa com o olho cortado */
body.streamer-mode .sensitive::after,
html[style*="--sm"] .sensitive::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #d1d5db;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(28px, 40%) auto;
    border-radius: inherit;
    z-index: 5;
}

.dark body.streamer-mode .sensitive::after,
.dark html[style*="--sm"] .sensitive::after {
    background-color: #374151;
}

/* The toggle button itself gets a glow when active */
.streamer-btn-active {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    animation: streamer-pulse 2s ease-in-out infinite;
}

@keyframes streamer-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    }
}