/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Seções */
.section {
    display: none;
    padding: 2rem 0;
    min-height: calc(100vh - 100px);
}

.section.active {
    display: block;
}

/* Cards */
.welcome-card, .game-container, .result-card, .ranking-card, .admin-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Seção Inicial */
.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.welcome-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.welcome-header p {
    font-size: 1.2rem;
    color: #666;
}

.game-options {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.option-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #e9ecef;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.start-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.stats-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    min-width: 120px;
}

.stat-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.stat-item small {
    color: #666;
    font-size: 0.9rem;
}

/* Seção do Jogo */
.game-header {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    width: 0%;
}

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

.question-counter, .score, .timer {
    font-weight: 600;
    color: #333;
}

.timer i {
    color: #667eea;
    margin-right: 0.5rem;
}

.question-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.text-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.text-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.question-content h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.question-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.answer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.answer-btn {
    flex: 1;
    max-width: 200px;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.true-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.false-btn {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

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

.answer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modal de Feedback */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.feedback-modal.show {
    display: flex;
}

.feedback-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-header {
    margin-bottom: 1rem;
}

.feedback-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feedback-header i.correct {
    color: #28a745;
}

.feedback-header i.incorrect {
    color: #dc3545;
}

.feedback-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feedback-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #555;
}

.next-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Seção de Resultado */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.result-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.circle-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#667eea 0deg, #e9ecef 0deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-progress::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 50%;
}

.circle-progress span {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.circle-progress small {
    position: relative;
    z-index: 1;
    color: #666;
}

.result-details {
    flex: 1;
    min-width: 250px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item i {
    font-size: 1.2rem;
    width: 20px;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: #667eea;
    color: white;
}

.action-btn.secondary {
    background: #28a745;
    color: white;
}

.action-btn.tertiary {
    background: #6c757d;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Seção de Ranking */
.ranking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ranking-header i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.ranking-list {
    margin-bottom: 2rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ranking-position {
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px;
    text-align: center;
}

.ranking-position.first {
    color: #ffd700;
}

.ranking-position.second {
    color: #c0c0c0;
}

.ranking-position.third {
    color: #cd7f32;
}

.ranking-info {
    flex: 1;
    margin-left: 1rem;
}

.ranking-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.ranking-stats {
    color: #666;
    font-size: 0.9rem;
}

.ranking-score {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.refresh-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Seção de Administração */
.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-header i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.admin-login {
    max-width: 400px;
    margin: 0 auto;
}

.login-btn {
    width: 100%;
    background: #dc3545;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.2rem;
    color: #333;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .welcome-header h2 {
        font-size: 2rem;
    }
    
    .stats-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .answer-buttons {
        flex-direction: column;
    }
    
    .result-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .welcome-card, .game-container, .result-card, .ranking-card, .admin-card {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .option-card {
        padding: 1rem;
    }
    
    .question-card {
        padding: 1rem;
    }
    
    .text-box {
        padding: 1rem;
    }
}

