/* Quiz - Jaki kamper dla Ciebie? */

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.quiz-header h2 {
    font-size: 28px;
    color: #2c5530;
    margin: 0 0 10px 0;
}

.quiz-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

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

.quiz-progress-bar {
    background: linear-gradient(90deg, #2c5530, #4a8f54);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.quiz-progress-text {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

/* Question card */
.quiz-question {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.quiz-question-number {
    display: inline-block;
    background: #2c5530;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
}

.quiz-question h3 {
    font-size: 20px;
    color: #292b40;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Answer options */
.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-answer {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.quiz-answer:hover {
    border-color: #2c5530;
    background: #f8fdf8;
}

.quiz-answer.selected {
    border-color: #2c5530;
    background: #e8f5e9;
}

.quiz-answer-icon {
    font-size: 24px;
    margin-right: 15px;
    min-width: 32px;
    text-align: center;
}

.quiz-answer-text {
    flex: 1;
}

.quiz-answer-text strong {
    display: block;
    font-size: 15px;
    color: #292b40;
    margin-bottom: 2px;
}

.quiz-answer-text span {
    font-size: 13px;
    color: #888;
}

.quiz-answer-check {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quiz-answer.selected .quiz-answer-check {
    background: #2c5530;
    border-color: #2c5530;
    color: #fff;
}

/* Navigation buttons */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.quiz-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.quiz-btn-prev {
    background: #f0f0f0;
    color: #666;
}

.quiz-btn-prev:hover {
    background: #e0e0e0;
}

.quiz-btn-next {
    background: #2c5530;
    color: #fff;
    margin-left: auto;
}

.quiz-btn-next:hover {
    background: #1a3a1f;
}

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

/* Results */
.quiz-result {
    display: none;
    text-align: center;
}

.quiz-result.active {
    display: block;
}

.quiz-result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.quiz-result h2 {
    font-size: 24px;
    color: #2c5530;
    margin: 0 0 10px 0;
}

.quiz-result-type {
    font-size: 32px;
    font-weight: 700;
    color: #292b40;
    margin-bottom: 20px;
}

.quiz-result-card {
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1f 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    text-align: left;
}

.quiz-result-card h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    opacity: 0.9;
}

.quiz-result-card ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.quiz-result-card li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.quiz-result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.quiz-result-stat {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
}

.quiz-result-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c5530;
}

.quiz-result-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.quiz-result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.quiz-result-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.quiz-result-btn-primary {
    background: #2c5530;
    color: #fff;
}

.quiz-result-btn-primary:hover {
    background: #1a3a1f;
    color: #fff;
}

.quiz-result-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.quiz-result-btn-secondary:hover {
    background: #e0e0e0;
}

/* Start screen */
.quiz-start {
    text-align: center;
    padding: 40px 20px;
}

.quiz-start-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.quiz-start h2 {
    font-size: 28px;
    color: #292b40;
    margin: 0 0 15px 0;
}

.quiz-start p {
    color: #666;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.quiz-start-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quiz-start-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.quiz-start-feature span {
    font-size: 20px;
}

.quiz-start-btn {
    display: inline-block;
    background: #2c5530;
    color: #fff;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.quiz-start-btn:hover {
    background: #1a3a1f;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .quiz-container {
        padding: 15px;
    }

    .quiz-question {
        padding: 20px;
    }

    .quiz-question h3 {
        font-size: 18px;
    }

    .quiz-answer {
        padding: 14px 16px;
    }

    .quiz-result-details {
        grid-template-columns: 1fr;
    }

    .quiz-result-actions {
        flex-direction: column;
    }

    .quiz-start-features {
        flex-direction: column;
        gap: 15px;
    }
}

/* Hide page elements */
.page-id-1247 .entry-footer,
.page-id-1247 .meta_bottom,
.page-id-1247 .post-share,
.page-id-1247 .comments-area { display: none !important; }
.page-id-1247 .entry-content { margin-bottom: 0 !important; }
