/* Společné styly */
.quiz-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s;
}

.quiz-btn:hover {
    background: #135e96;
}

.quiz-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Single quiz */
.quiz-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.quiz-thumbnail {
    margin: 20px 0;
}

.quiz-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.quiz-excerpt {
    font-size: 18px;
    color: #666;
    margin: 20px 0;
}

.quiz-meta {
    color: #888;
    font-size: 14px;
}

/* Progress bar */
.quiz-progress {
    margin-bottom: 30px;
}

.quiz-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.quiz-progress-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s ease;
}

.quiz-progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Otázky */
.quiz-question-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.question-text h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.question-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.question-image {
    margin: 20px 0;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Odpovědi */
.question-answers {
    margin: 30px 0;
}

.answer-option {
    display: block;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.answer-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.answer-option input[type="radio"] {
    margin-right: 12px;
}

.answer-option input[type="radio"]:checked + .answer-text {
    font-weight: 600;
    color: #2271b1;
}

.answer-text {
    font-size: 16px;
}

/* Navigace */
.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.question-navigation .quiz-next:first-child,
.question-navigation .quiz-submit:first-child {
    margin-left: auto;
}

.quiz-prev {
    background: #666;
}

.quiz-prev:hover {
    background: #555;
}

/* Výsledky */
.quiz-results {
    text-align: center;
    padding: 40px 20px;
}

.results-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.results-score {
    margin: 40px 0;
}

.score-circle {
    width: 200px;
    height: 200px;
    border: 15px solid #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: border-color 0.3s;
}

.score-percentage {
    font-size: 48px;
    font-weight: bold;
    color: #4CAF50;
}

.score-text {
    font-size: 20px;
    color: #666;
}

.results-message {
    font-size: 20px;
    margin: 30px 0;
    background: #fffde7;
    border: 2px solid #ffd54f;
    border-radius: 8px;
    padding: 20px 25px;
    text-align: center;
}

.results-message p {
    margin: 0;
    line-height: 1.5;
    color: #5d4037;
    font-weight: 600;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.quiz-share-fb {
    background: #1877f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.quiz-share-fb:hover {
    background: #166fe5;
}

.quiz-share-fb svg {
    flex-shrink: 0;
}

/* Results Review */
.results-review {
    margin: 40px 0;
    text-align: left;
}

.results-review h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.review-questions {
    max-width: 800px;
    margin: 0 auto;
}

.review-question {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-question.question-correct {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.review-question.question-incorrect {
    border-color: #f44336;
    background: #fef5f5;
}

.review-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.review-question-number {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.review-question-status {
    font-weight: 600;
    font-size: 14px;
}

.status-correct {
    color: #4CAF50;
}

.status-incorrect {
    color: #f44336;
}

.review-question-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.review-question-image {
    margin: 15px 0;
    text-align: center;
}

.review-question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.review-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-answer {
    padding: 12px 15px;
    border-radius: 6px;
    background: #fff;
    border: 2px solid #ddd;
    font-size: 15px;
}

.review-answer.answer-correct {
    background: #e8f5e9;
    border-color: #4CAF50;
    color: #2e7d32;
    font-weight: 600;
}

.review-answer.answer-incorrect {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
    font-weight: 600;
}

.answer-icon {
    font-weight: bold;
    margin-right: 5px;
}

/* Archive */
.quiz-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 18px;
    color: #666;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.quiz-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quiz-card-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.quiz-card-content {
    padding: 20px;
}

.quiz-card-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.quiz-card-title a {
    color: #333;
    text-decoration: none;
}

.quiz-card-title a:hover {
    color: #2271b1;
}

.quiz-card-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.quiz-card-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.quiz-card-button {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.quiz-card-button:hover {
    background: #135e96;
}

.no-quizzes {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 60px 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-title {
        font-size: 24px;
    }
    
    .question-text h2 {
        font-size: 20px;
    }
    
    .quiz-grid {
        grid-template-columns: 1fr;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
        border-width: 12px;
    }
    
    .score-percentage {
        font-size: 36px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .question-navigation {
        flex-direction: column;
    }
}
