/* Additional styles for quiz */
.gk-quiz-container * {
    box-sizing: border-box;
}

.gk-quiz-header {
    background: #fef2f2;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #fecaca;
}

.gk-quiz-header h2 {
    color: #dc2626;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.gk-quiz-header p {
    margin: 5px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.gk-start-screen {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gk-quiz-settings {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gk-quiz-settings h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.gk-select {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.gk-start-btn {
    background: #e40505;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.gk-start-btn:hover {
    background: #c10505;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 5, 5, 0.3);
}

.gk-question {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.gk-quiz-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.gk-timer {
    font-size: 18px;
    font-weight: bold;
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.gk-timer.warning {
    background: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gk-question-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #333;
}

.gk-options {
    margin: 20px 0;
}

.gk-option {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.gk-option:hover {
    border-color: #e40505;
    background: #fef2f2;
    transform: translateX(5px);
}

.gk-option.selected {
    border-color: #e40505;
    background: #fef2f2;
    transform: translateX(10px);
}

.gk-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.gk-btn {
    background: #e40505;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 100px;
    font-size: 14px;
}

.gk-btn:hover:not(:disabled) {
    background: #c10505;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gk-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress indicator */
.gk-progress {
    color: #666;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 20px;
}

.gk-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gk-score-emoji {
    font-size: 64px;
    margin: 20px 0;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.gk-results h2 {
    color: #dc2626;
    margin-bottom: 10px;
}

.gk-results h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.gk-feedback {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.gk-time-info {
    color: #666;
    margin: 10px 0;
    font-style: italic;
}

.gk-time-up {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gk-time-up h2 {
    color: #ef4444;
    margin-bottom: 20px;
}

.gk-restart-btn {
    background: #059669;
    margin-top: 10px;
}

.gk-restart-btn:hover {
    background: #047857;
}

/* Social Share Styles */
.gk-social-share {
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.gk-social-share h4 {
    margin: 0 0 15px 0;
    color: #334155;
    font-size: 18px;
}

.gk-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gk-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 120px;
    justify-content: center;
}

.gk-share-facebook {
    background: #1877f2;
    color: white;
}

.gk-share-twitter {
    background: #1da1f2;
    color: white;
}

.gk-share-whatsapp {
    background: #25d366;
    color: white;
}

.gk-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gk-share-facebook:hover {
    background: #1664d9;
}

.gk-share-twitter:hover {
    background: #1a91da;
}

.gk-share-whatsapp:hover {
    background: #20b858;
}

.gk-share-icon {
    font-size: 16px;
}

/* Answer Review */
.gk-answer-review {
    margin: 30px 0;
    text-align: left;
}

.gk-answer-review h4 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.gk-review-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.gk-correct-answers, .gk-wrong-answers {
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
}

.gk-correct-answers {
    background: #f0fdf4;
    color: #059669;
    border: 2px solid #059669;
}

.gk-wrong-answers {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.gk-question-review {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

.gk-review-question {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid;
}

.gk-review-question.correct {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.gk-review-question.wrong {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.gk-review-question-text {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.gk-review-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
}

.gk-user-answer, .gk-correct-answer {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.gk-user-answer {
    background: #fef3c7;
    color: #92400e;
}

.gk-correct-answer {
    background: #d1fae5;
    color: #065f46;
}

/* Quiz container */
.gk-quiz-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .gk-quiz-container {
        margin: 10px;
    }
    
    .gk-quiz-header {
        padding: 20px;
    }
    
    .gk-quiz-header h2 {
        font-size: 24px;
    }
    
    .gk-question {
        padding: 20px;
    }
    
    .gk-quiz-header-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .gk-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .gk-btn {
        width: 100%;
    }
    
    .gk-question-text {
        font-size: 16px;
    }
    
    .gk-option {
        padding: 12px;
        font-size: 14px;
    }
    
    .gk-review-answers {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .gk-review-summary {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .gk-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gk-share-btn {
        width: 200px;
    }
}

/* Loading state */
.gk-loading {
    text-align: center;
    padding: 40px;
}

.gk-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e40505;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation effects */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.gk-score-emoji {
    animation: float 3s ease-in-out infinite;
}

/* Confetti and effects */
.gk-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}