:root {
    --bg-base: #050505;
    --bg-surface: #111111;
    --bg-surface-elevated: #1a1a1a;
    
    --text-main: #ededed;
    --text-muted: #a1a1aa;
    
    --gold-light: #fde047;
    --gold-main: #eab308;
    --gold-dark: #a16207;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(234, 179, 8, 0.3);
    
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    /* Fundo premium com gradientes sutis ao invés de blobs pesados */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(161, 98, 7, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(161, 98, 7, 0.04), transparent 25%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo {
    letter-spacing: 1px;
}

/* Typography Utils */
.highlight { 
    background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.allow { color: var(--success); font-weight: 500; }
.deny { color: var(--error); font-weight: 500; }

.icon-inline {
    width: 1.15em !important;
    height: 1.15em !important;
    max-width: 1.15em !important;
    max-height: 1.15em !important;
    vertical-align: -0.15em;
    fill: currentColor;
    display: inline-block;
    margin-right: 0.35rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px; /* Bordas mais afiadas dão um ar mais "esports" e sério */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(to bottom, #d97706, #92400e);
    color: #fff;
    border: 1px solid #f59e0b;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn.primary:hover {
    background: linear-gradient(to bottom, #f59e0b, #b45309);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn.secondary {
    background: transparent;
    color: var(--gold-main);
    border: 1px solid var(--border-highlight);
}

.btn.secondary:hover {
    background: rgba(234, 179, 8, 0.05);
    border-color: var(--gold-main);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-light);
}

/* Layout */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(234, 179, 8, 0.1);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections - Substituted heavy glassmorphism for elegant dark panels */
.glass-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glass-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
}

.glass-section h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--gold-light);
}

/* Quiz UI Customization */
#quiz {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

#quiz > p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.question {
    background: var(--bg-surface-elevated);
    padding: 2rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.question p {
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #fff;
}

/* Custom Premium Radio Buttons */
.question label {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    color: var(--text-muted);
}

.question label:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Usando o seletor :has() moderno para mudar o estilo do label inteiro quando selecionado */
.question label:has(input[type="radio"]:checked) {
    border-color: var(--gold-main);
    background: rgba(234, 179, 8, 0.05);
    color: #fff;
}

.question input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    outline: none;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.question input[type="radio"]:checked {
    border-color: var(--gold-main);
}

.question input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background-color: var(--gold-main);
    border-radius: 50%;
}

.submit-btn {
    width: 100%;
    margin-top: 2rem;
    font-size: 1.1rem;
    padding: 1.25rem;
}

.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
    animation: fadeIn 0.4s ease;
}

.result-box.success {
    background: rgba(16, 185, 129, 0.05);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-box.error {
    background: rgba(239, 68, 68, 0.05);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Twitch section */
.twitch-container {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2.5rem 2rem;
}

.twitch-wrapper {
    border-radius: 12px;
    overflow: hidden;
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    background: #000;
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.15);
    aspect-ratio: 16 / 9;
    position: relative;
}

.twitch-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Eventos / Schedule styling */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.event-day {
    font-weight: 700;
    color: var(--gold-main);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.event-time {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Detailed Rules Page */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.detailed-rule {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.5rem;
    transition: border-color 0.3s;
}

.detailed-rule:hover {
    border-color: var(--border-highlight);
}

.detailed-rule h3 {
    color: var(--gold-main);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.detailed-rule h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.detailed-rule ul {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.detailed-rule ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.detailed-rule ul li::before {
    content: '▪';
    color: var(--gold-dark);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

.detailed-rule p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; padding: 1.5rem 1rem; }
    .nav-links { gap: 1rem; width: 100%; justify-content: center; flex-wrap: wrap; }
    .nav-links a { font-size: 0.85rem; }
    .hero { padding: 4rem 0 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; padding: 0 1rem; }
    .glass-section { padding: 2rem 1.25rem; margin-bottom: 2rem; }
    .glass-section h2 { font-size: 1.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .detailed-rule { padding: 1.25rem; }
    .detailed-rule h3 { font-size: 1.3rem; }
    #quiz { padding: 1.5rem 0.5rem; }
    .question { padding: 1.5rem 1rem; }
    .question label { font-size: 0.9rem; padding: 0.75rem 1rem; }
    .twitch-container { padding: 1.5rem 1rem; }
    .twitch-wrapper { border-radius: 8px; }
}
