/* GKQUIZZ Frontend Modern Styles */

#gkquizz-quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#gkquizz-quiz-header {
    text-align: left;
    margin-bottom: 30px;
}

.gkquizz-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.gkquizz-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.gkquizz-meta {
    display: flex;
    gap: 30px;
    font-size: 1rem;
    color: #718096;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.gkquizz-question {
    background: #fff;
    border-radius: 12px;
    padding: 0;
}

.gkquizz-question-header {
    margin-bottom: 20px;
}

.gkquizz-question-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    background: #edf2f7;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

.gkquizz-question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.4;
}

.gkquizz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.gkquizz-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.gkquizz-option:hover {
    background: #ebf4ff;
    border-color: #4299e1;
}

.gkquizz-option.selected {
    background: #ebf8ff;
    border-color: #3182ce;
}

.gkquizz-option.correct {
    background: #f0fff4;
    border-color: #48bb78;
}

.gkquizz-option.incorrect {
    background: #fff5f5;
    border-color: #f56565;
}

.gkquizz-option-letter {
    width: 30px;
    height: 30px;
    background: #4299e1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
    font-size: 1rem;
}

.gkquizz-option-text {
    font-size: 1.1rem;
    color: #2d3748;
    flex: 1;
}

.gkquizz-option-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 16px;
    font-weight: bold;
}

.gkquizz-option.selected .gkquizz-option-check {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
}

.gkquizz-option.correct .gkquizz-option-check,
.gkquizz-option.incorrect .gkquizz-option-check {
    display: none;
}

.gkquizz-feedback {
    background: #f7fafc;
    border-left: 4px solid #4299e1;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-style: italic;
    color: #4a5568;
}

.gkquizz-nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.gkquizz-prev-btn, .gkquizz-next-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 120px;
}

.gkquizz-prev-btn {
    background: #edf2f7;
    color: #4a5568;
}

.gkquizz-prev-btn:hover:not(:disabled) {
    background: #e2e8f0;
}

.gkquizz-next-btn {
    background: #4299e1;
    color: white;
}

.gkquizz-next-btn:hover:not(:disabled) {
    background: #3182ce;
}

.gkquizz-prev-btn:disabled, .gkquizz-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result Page */
.gkquizz-result {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gkquizz-result h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 20px;
}

.gkquizz-result p {
    font-size: 1.3rem;
    color: #4299e1;
    font-weight: 600;
}

/* Leaderboard */
.gkquizz-leaderboard {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.gkquizz-leaderboard th {
    background: #edf2f7;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
}

.gkquizz-leaderboard td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* Paywall Modal */
.gkquizz-paywall {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.gkquizz-paywall h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.gkquizz-plans {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.plan {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}

.plan:hover {
    border-color: #4299e1;
}

.plan h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.plan .gkquizz-select-plan {
    background: #4299e1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

#gkquizz-payment-details {
    text-align: center;
}

#gkquizz-qr-code {
    max-width: 200px;
    margin: 20px auto;
    border: 1px solid #e2e8f0;
    padding: 10px;
    background: white;
}

#gkquizz-utr {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin: 15px 0;
}

#gkquizz-verify-payment {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.gkquizz-payment-status {
    margin-top: 15px;
    font-weight: 500;
}

/* Quiz List */
.gkquizz-quiz-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.gkquizz-quiz-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.gkquizz-quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gkquizz-quiz-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gkquizz-quiz-card h3 {
    margin: 15px 20px 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.gkquizz-quiz-card p {
    margin: 0 20px 10px;
    color: #666;
}

.gkquizz-quiz-card .gkquizz-start-quiz {
    display: block;
    width: calc(100% - 40px);
    margin: 20px auto;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gkquizz-quiz-card .gkquizz-start-quiz:hover {
    opacity: 0.9;
}