/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #070738;
    --secondary: #1A1A5E;
    --accent: #FE0000;
    --vermelho: #FE0000;
    --branco: #ffffff;
    --verde: #4CAF50;
    --laranja: #FF9800;
    --cinza-claro: #f8fafc;
    --cinza: #64748b;
    --cinza-escuro: #475569;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--primary);
    background-color: var(--branco);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--branco);
    border-color: var(--accent);
}

.btn-accent:hover {
    background-color: #e00000;
    border-color: #e00000;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--branco);
}

.btn-white {
    background-color: var(--branco);
    color: var(--accent);
    border-color: var(--branco);
}

.btn-white:hover {
    background-color: var(--cinza-claro);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--branco);
    border-color: var(--branco);
}

.btn-outline-white:hover {
    background-color: var(--branco);
    color: var(--accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-success {
    background-color: #10b981;
    color: var(--branco);
    border-color: #10b981;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

/* ===== HEADER (IDÊNTICO AO INDEX) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(7, 7, 56, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
}

.logoimg {
    height: 30px;
    width: 30px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-desktop a:hover {
    color: var(--accent);
}

.nav-desktop a.active {
    color: var(--accent);
    font-weight: 600;
}

.header > .container > .btn {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--branco);
    border-top: 1px solid var(--gray-200);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.nav-mobile a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-mobile .btn {
    margin-top: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .header > .container > .btn {
        display: inline-flex;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* ===== QUESTIONS HERO ===== */
.questions-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--cinza-claro) 0%, var(--branco) 50%, rgba(7, 7, 56, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.questions-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(254, 0, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.questions-hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.questions-hero-info {
    position: relative;
    z-index: 2;
}

.questions-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--accent), #ff4444);
    color: var(--branco);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.2);
}

.questions-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.questions-description {
    font-size: 1.125rem;
    color: var(--cinza-escuro);
    margin-bottom: 2rem;
    max-width: 600px;
}

.questions-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.questions-stats .stat {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--branco), var(--cinza-claro));
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(7, 7, 56, 0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--cinza);
}

/* ===== MAIN CONTENT ===== */
.questions-main {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--branco), var(--cinza-claro), var(--branco));
}

/* ===== FILTERS SECTION ===== */
.filters-section {
    background: linear-gradient(135deg, var(--branco), var(--cinza-claro));
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(7, 7, 56, 0.05);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--accent);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    background-color: var(--branco);
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(254, 0, 0, 0.1);
}

/* Hashtag Filter Container */
.hashtag-filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    background: var(--cinza-claro);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
}

.hashtag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--branco);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.hashtag-chip button {
    background: none;
    border: none;
    color: var(--branco);
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    font-size: 0.75rem;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ===== QUESTIONS LAYOUT ===== */
.questions-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .questions-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* ===== QUESTIONS LIST SECTION ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: var(--accent);
}

.section-description {
    color: var(--cinza);
    font-size: 0.95rem;
}

/* ===== QUESTIONS GRID ===== */
.questions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .questions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== QUESTION CARD ===== */
.question-card {
    background: linear-gradient(135deg, var(--branco), var(--cinza-claro));
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.5s ease;
}

.question-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(254, 0, 0, 0.1);
    transform: translateY(-2px);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.question-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-origin {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--branco);
}

.badge-subject {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--branco);
}

.badge-difficulty {
    background: linear-gradient(135deg, var(--verde), #059669);
    color: var(--branco);
}

.badge-difficulty.facil {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge-difficulty.media {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-difficulty.dificil {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.question-year {
    font-size: 0.85rem;
    color: var(--cinza);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.question-stats {
    display: flex;
    gap: 0.5rem;
}

.stat-bubble {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--cinza-claro);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: var(--cinza);
}

.stat-bubble i {
    font-size: 0.7rem;
}

.question-statement {
    color: var(--cinza-escuro);
    line-height: 1.5;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.question-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hashtag-small {
    padding: 0.25rem 0.5rem;
    background: var(--cinza-claro);
    color: var(--cinza);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.solve {
    background: linear-gradient(135deg, var(--accent), #ff4444);
    color: var(--branco);
    flex: 1;
}

.action-btn.solve:hover {
    background: linear-gradient(135deg, #e00000, #ff3333);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 0, 0, 0.2);
}

.action-btn.edit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--branco);
}

.action-btn.edit:hover {
    background: linear-gradient(135deg, #1A1A5E, #070738);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 7, 56, 0.2);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-300);
    background: var(--branco);
    color: var(--primary);
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--branco);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--gray-400);
    font-weight: 600;
}

/* ===== SIDEBAR ===== */
.questions-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: linear-gradient(135deg, var(--branco), var(--cinza-claro));
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(7, 7, 56, 0.1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-header i {
    color: var(--accent);
    font-size: 1.25rem;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
}

.sidebar-content {
    margin-top: 1rem;
}

/* Stats Chart */
.stats-chart {
    height: 200px;
    margin-bottom: 1rem;
}

/* Stats List */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--cinza-claro);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.stat-item span {
    color: var(--cinza);
    font-size: 0.9rem;
}

.stat-item strong {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Popular Hashtags */
.popular-hashtags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popular-hashtag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--cinza-claro);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.popular-hashtag:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(254, 0, 0, 0.05), rgba(254, 0, 0, 0.02));
    transform: translateX(4px);
}

.hashtag-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.hashtag-count {
    color: var(--cinza);
    font-size: 0.8rem;
    background: var(--branco);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* ===== MODAL MODERNO ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: var(--branco);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active .modal-content {
    transform: translateY(0);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(100px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--branco);
    z-index: 10;
    border-radius: 1.5rem 1.5rem 0 0;
    background: linear-gradient(135deg, var(--branco), var(--cinza-claro));
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--cinza);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cinza-claro);
}

.modal-close:hover {
    color: var(--accent);
    background: rgba(254, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* ===== MODAL QUESTION STYLES ===== */
.question-modal-header {
    background: linear-gradient(135deg, rgba(7, 7, 56, 0.03), rgba(26, 26, 94, 0.02));
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(7, 7, 56, 0.1);
}

.modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--branco);
    border: 2px solid var(--gray-200);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cinza-escuro);
}

.modal-badges i {
    color: var(--accent);
}

.question-subject-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.question-subject-info h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-subject-info i {
    color: var(--accent);
}

.question-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent), #ff4444);
    color: var(--branco);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Question Statement */
.question-statement-full {
    background: var(--branco);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--gray-200);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--cinza-escuro);
}

.question-statement-full p {
    margin-bottom: 1rem;
}

.question-statement-full p:last-child {
    margin-bottom: 0;
}

.question-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

/* Alternatives List */
.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.alternative-item {
    background: var(--branco);
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alternative-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.alternative-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(254, 0, 0, 0.1);
}

.alternative-item:hover::before {
    background: var(--accent);
}

.alternative-item.selected {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(254, 0, 0, 0.05), rgba(254, 0, 0, 0.02));
    transform: translateX(0);
    box-shadow: 0 8px 25px rgba(254, 0, 0, 0.15);
}

.alternative-item.selected::before {
    background: var(--accent);
}

.alternative-item.correct {
    border-color: var(--verde);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.02));
}

.alternative-item.correct::before {
    background: var(--verde);
}

.alternative-item.wrong {
    border-color: #F44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.05), rgba(244, 67, 54, 0.02));
}

.alternative-item.wrong::before {
    background: #F44336;
}

.alternative-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alt-letter {
    width: 36px;
    height: 36px;
    background: var(--cinza-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--cinza-escuro);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.alternative-item:hover .alt-letter {
    background: var(--accent);
    color: var(--branco);
}

.alternative-item.selected .alt-letter {
    background: var(--accent);
    color: var(--branco);
    transform: scale(1.1);
}

.alternative-item.correct .alt-letter {
    background: var(--verde);
    color: var(--branco);
}

.alternative-item.wrong .alt-letter {
    background: #F44336;
    color: var(--branco);
}

.alt-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cinza-escuro);
    padding-top: 0.25rem;
}

.alternative-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid var(--gray-200);
}

/* Answer Section */
.answer-section {
    background: linear-gradient(135deg, var(--cinza-claro), var(--branco));
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

.answer-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.answer-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gray-300);
    background: var(--branco);
    color: var(--cinza-escuro);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.answer-btn span {
    position: relative;
    z-index: 2;
}

.answer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(254, 0, 0, 0.2);
}

.answer-btn.selected {
    background: var(--accent);
    color: var(--branco);
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(254, 0, 0, 0.3);
}

.answer-btn.selected::before {
    opacity: 1;
}

.modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    justify-content: center;
}

.control-btn.skip {
    background: linear-gradient(135deg, var(--cinza-claro), var(--gray-200));
    color: var(--cinza-escuro);
}

.control-btn.skip:hover {
    background: linear-gradient(135deg, var(--cinza), var(--cinza-escuro));
    color: var(--branco);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.3);
}

.control-btn.submit {
    background: linear-gradient(135deg, var(--accent), #ff4444);
    color: var(--branco);
    opacity: 0.6;
    cursor: not-allowed;
}

.control-btn.submit:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.control-btn.submit:not(:disabled):hover {
    background: linear-gradient(135deg, #e00000, #ff3333);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(254, 0, 0, 0.4);
}

/* Feedback Section */
.feedback-section {
    background: var(--branco);
    border-radius: 1rem;
    padding: 0;
    margin-top: 2rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feedback-section.correct {
    border-color: var(--verde);
}

.feedback-section.incorrect {
    border-color: #F44336;
}

.feedback-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--verde), #059669);
    color: var(--branco);
}

.feedback-header.incorrect {
    background: linear-gradient(135deg, #F44336, #d32f2f);
}

.feedback-header i {
    font-size: 2rem;
}

.feedback-header h4 {
    font-size: 1.25rem;
    margin: 0;
    flex: 1;
}

.feedback-content {
    padding: 1.5rem;
}

.result-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-item {
    padding: 1rem;
    background: var(--cinza-claro);
    border-radius: 0.75rem;
    border: 2px solid var(--gray-200);
}

.result-item.correct {
    border-color: var(--verde);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}

.result-item span {
    display: block;
    color: var(--cinza);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.result-item strong {
    display: block;
    color: var(--cinza-escuro);
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.explanation {
    background: linear-gradient(135deg, var(--cinza-claro), var(--branco));
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--gray-200);
}

.explanation h5 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.explanation h5 i {
    color: var(--accent);
}

.explanation p {
    color: var(--cinza-escuro);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.explanation p:last-child {
    margin-bottom: 0;
}

.explanation-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-top: 1rem;
    border: 1px solid var(--gray-200);
}

.feedback-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== FOOTER (IDÊNTICO AO INDEX) ===== */
.footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, var(--primary) 0%, #050530 100%);
    color: var(--branco);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.logo.light .logo-name,
.logo.light .logo-subtitle {
    color: var(--branco);
}

.logo.light .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--branco);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: var(--accent);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--branco);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--branco);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* ===== EMPTY STATE & LOADING ===== */
.no-questions,
.loading-questions,
.error-message {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--cinza);
    grid-column: 1 / -1;
    background: var(--cinza-claro);
    border-radius: 1rem;
    border: 2px dashed var(--gray-300);
}

.no-questions i,
.loading-questions i,
.error-message i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-questions h3,
.error-message h3 {
    font-size: 1.5rem;
    color: var(--cinza-escuro);
    margin-bottom: 0.5rem;
}

.no-questions p,
.error-message p {
    color: var(--cinza);
    max-width: 400px;
    margin: 0 auto;
}

.loading-questions i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cinza-claro);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid var(--cinza-claro);
}

::-webkit-scrollbar-thumb:hover {
    background: #e00000;
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--branco);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 99999;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--accent);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: var(--verde);
}

.toast.error {
    border-left-color: #F44336;
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: var(--verde);
}

.toast.error i {
    color: #F44336;
}

.toast.info i {
    color: var(--accent);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .questions-hero {
        padding: 100px 0 40px;
    }
    
    .questions-title {
        font-size: 2rem;
    }
    
    .questions-stats {
        gap: 1rem;
    }
    
    .questions-stats .stat {
        padding: 0.75rem 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .filters-section {
        padding: 1.5rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        max-height: 95vh;
        border-radius: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .question-modal-header {
        padding: 1rem;
    }
    
    .question-subject-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .answer-options {
        gap: 0.5rem;
    }
    
    .answer-btn {
        width: 45px;
        height: 45px;
    }
    
    .modal-controls {
        flex-direction: column;
    }
    
    .control-btn {
        width: 100%;
    }
    
    .result-info {
        grid-template-columns: 1fr;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* ===== USER AVATAR IN HEADER ===== */
#userAvatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
}

#userName {
    margin-left: 8px;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

#userDiv {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    background: var(--cinza-claro);
    transition: all 0.2s ease;
}

#userDiv:hover {
    background: rgba(254, 0, 0, 0.05);
}

/* ===== KEYBOARD SHORTCUT HINT ===== */
.keyboard-hint {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--cinza-claro);
    color: var(--cinza);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    margin-left: 0.5rem;
    border: 1px solid var(--gray-200);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .modal {
        background: rgba(0, 0, 0, 0.85);
    }
    
    .modal-content {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .modal-header {
        background: #2d2d2d;
    }
    
    .question-modal-header {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .alternative-item {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .alt-text {
        color: #e0e0e0;
    }
}

.question-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.question-modal-header .modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.question-modal-header .modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.hashtag-input-container {
    position: relative;
}

.tags-input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: white;
    min-height: 45px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-tag {
    background: var(--azul-claro);
    color: var(--azul-escuro);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.hashtag-tag .remove-tag {
    background: none;
    border: none;
    color: var(--azul-escuro);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}

.hashtag-tag .remove-tag:hover {
    color: var(--vermelho);
}

.hashtag-input {
    border: none;
    outline: none;
    padding: 8px;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

.hashtag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.hashtag-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}