/* GK Quizz Pro - Frontend Styles */

.gk-quizz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.gk-quiz-screen {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.gk-quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.gk-quiz-header h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.gk-quiz-header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.gk-quiz-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.gk-stat {
    text-align: center;
}

.gk-stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
    line-height: 1;
}

.gk-stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gk-quiz-instructions {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 4px;
    margin: 30px 0;
}

.gk-quiz-instructions h3 {
    color: #2c3e50;
    margin-top: 0;
}

.gk-quiz-instructions ul {
    padding-left: 20px;
    color: #555;
}

.gk-quiz-instructions li {
    margin-bottom: 8px;
}

.gk-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.gk-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gk-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.gk-btn-secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.gk-btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.gk-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.4);
}

.gk-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Quiz Progress */
.gk-quiz-progress {
    margin-bottom: 30px;
}

.gk-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.gk-progress-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
}

/* Timer */
.gk-quiz-timer {
    position: absolute;
    top: 40px;
    right: 40px;
}

.gk-timer-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.gk-timer-circle svg {
    transform: rotate(-90deg);
}

.gk-timer-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 4;
}

.gk-timer-fg {
    fill: none;
    stroke: #3498db;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    transition: stroke-dashoffset 1s linear;
}

.gk-timer-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

/* Question Container */
.gk-question-container {
    margin: 40px 0;
}

#gk-question-text {
    color: #2c3e50;
    font-size: 1.4em;
    line-height: 1.5;
    margin-bottom: 30px;
}

.gk-options-container {
    display: grid;
    gap: 15px;
}

.gk-option {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    position: relative;
}

.gk-option:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.gk-option.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.gk-option.correct {
    border-color: #28a745;
    background: #d4edda;
}

.gk-option.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
}

.gk-option-label {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 15px;
    font-weight: bold;
}

.gk-option.selected .gk-option-label {
    background: #3498db;
}

.gk-option.correct .gk-option-label {
    background: #28a745;
}

.gk-option.incorrect .gk-option-label {
    background: #dc3545;
}

/* Quiz Navigation */
.gk-quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Feedback Screen */
.gk-feedback-header {
    text-align: center;
    margin-bottom: 30px;
}

.gk-feedback-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.gk-feedback-icon.correct {
    background: #d4edda;
    color: #28a745;
}

.gk-feedback-icon.incorrect {
    background: #f8d7da;
    color: #dc3545;
}

#gk-feedback-title {
    color: #2c3e50;
    font-size: 1.8em;
    margin: 0;
}

.gk-feedback-content {
    text-align: center;
    margin-bottom: 30px;
}

#gk-feedback-message {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 20px;
}

.gk-explanation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Results Screen */
.gk-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.gk-results-header h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.gk-results-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.gk-result-stat {
    text-align: center;
}

.gk-result-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2em;
    font-weight: bold;
    color: white;
}

.gk-score-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gk-percentage-circle {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.gk-correct-circle {
    background: linear-gradient(135deg, #f46b45 0%, #eea849 100%);
}

.gk-result-stat h4 {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
}

.gk-results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

/* Social Share */
.gk-social-share {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.gk-social-share h4 {
    color: #6c757d;
    margin-bottom: 20px;
}

.gk-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.gk-share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gk-whatsapp {
    background: #25D366;
}

.gk-facebook {
    background: #1877F2;
}

.gk-twitter {
    background: #1DA1F2;
}

.gk-copy-link {
    background: #6c757d;
}

.gk-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal */
.gk-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.gk-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.gk-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gk-modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

.gk-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
}

.gk-modal-close:hover {
    color: #dc3545;
}

.gk-modal-body {
    padding: 30px;
}

/* Login Required */
.gk-quiz-login-required {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.gk-quiz-login-required a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.gk-quiz-login-required a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gk-quiz-screen {
        padding: 20px;
    }
    
    .gk-quiz-header h2 {
        font-size: 2em;
    }
    
    .gk-quiz-stats {
        gap: 20px;
    }
    
    .gk-stat-number {
        font-size: 2em;
    }
    
    .gk-quiz-timer {
        position: static;
        margin: 0 auto 20px;
        text-align: center;
    }
    
    .gk-results-stats {
        gap: 20px;
    }
    
    .gk-result-circle {
        width: 100px;
        height: 100px;
        font-size: 1.5em;
    }
    
    .gk-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .gk-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gk-quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .gk-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gk-quiz-screen {
        padding: 15px;
    }
    
    .gk-quiz-header h2 {
        font-size: 1.5em;
    }
    
    .gk-results-stats {
        flex-direction: column;
    }
}