/* Quiz App Styles - Black, Red, White Theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.quiz-app-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Quiz Screens */
.quiz-screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.quiz-screen.active {
    display: block;
}

/* Header Styles */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.hamburger-menu,
.user-profile,
.close-quiz,
.close-results {
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.hamburger-menu:hover,
.user-profile:hover,
.close-quiz:hover,
.close-results:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.quiz-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.quiz-category-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 24px;
}

/* Stats Section */
.quiz-stats {
    display: flex;
    background: #ff0000;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    gap: 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.ranking-arrow {
    color: #00ff00;
    font-size: 16px;
    margin-left: 5px;
}

/* Categories List */
.quiz-categories-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.category-item {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item:hover {
    border-color: #ff0000;
    background: #2a2a2a;
}

.category-icon {
    font-size: 32px;
    margin-right: 20px;
    width: 50px;
    text-align: center;
}

.category-name {
    font-size: 18px;
    font-weight: 500;
}

/* Upgrade Button */
.upgrade-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.btn-upgrade {
    width: 100%;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-upgrade:hover {
    background: #cc0000;
}

/* Quiz Info */
.quiz-info {
    display: flex;
    justify-content: space-between;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Question Container */
.question-container {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.question-text {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.answer-option:hover {
    border-color: #ff0000;
    background: #333;
}

.answer-option.selected {
    border-color: #ff0000;
    background: #ff0000;
}

.answer-option.correct {
    border-color: #00ff00;
    background: #00ff00;
    color: #000;
}

.answer-option.incorrect {
    border-color: #ff0000;
    background: #ff0000;
}

.answer-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.option-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.answer-option.selected .option-letter {
    background: #fff;
    color: #ff0000;
}

.answer-option.correct .option-letter {
    background: #000;
    color: #00ff00;
}

.option-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
}

.option-status {
    position: absolute;
    right: 20px;
    font-size: 20px;
}

/* Submit Button */
.quiz-actions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.btn-submit {
    width: 100%;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background: #cc0000;
}

.btn-submit:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Results Screen */
.results-card {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid #333;
}

.trophy-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.congrats-text {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ff0000;
}

.score-display {
    font-size: 36px;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 20px;
}

.completion-text,
.attempts-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.9;
}

.attempts-text span {
    font-weight: bold;
    color: #ff0000;
}

/* Share Section */
.share-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.share-text {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #333;
    background: #2a2a2a;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    border-color: #ff0000;
    background: #ff0000;
}

.share-btn.instagram:hover {
    border-color: #e4405f;
    background: #e4405f;
}

.share-btn.facebook:hover {
    border-color: #1877f2;
    background: #1877f2;
}

.share-btn.whatsapp:hover {
    border-color: #25d366;
    background: #25d366;
}

/* Timer Styles */
.timer-warning {
    color: #ff0000;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .quiz-app-container {
        padding: 10px;
    }
    
    .quiz-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .answer-option {
        padding: 15px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .results-card {
        padding: 30px 20px;
    }
    
    .trophy-icon {
        font-size: 50px;
    }
    
    .congrats-text {
        font-size: 24px;
    }
    
    .score-display {
        font-size: 28px;
    }
}

/* WordPress Integration */
.quiz-app-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Hide WordPress admin bar interference */
.admin-bar .quiz-app-container {
    padding-top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .quiz-app-container {
        padding-top: 46px;
    }
}
