/* ============================================
   WAARHEIDSARCHIEF INTERACTIVE COMPONENTS
   CSS for test sections, badges, and challenges
   ============================================ */

/* Test Section Styling */
.test-section {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.15) 0%, rgba(26, 35, 50, 0.8) 100%);
    border: 3px solid #d4a847;
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    position: relative;
    box-shadow: 0 15px 40px rgba(212, 168, 71, 0.3);
}

.test-header {
    text-align: center;
    margin-bottom: 35px;
}

.test-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.test-title {
    font-size: 2rem;
    color: #d4a847;
    font-weight: 600;
    margin-bottom: 10px;
}

.test-intro {
    color: #b8c5d6;
    margin-top: 10px;
}

.test-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.test-badge {
    background: rgba(15, 20, 25, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #b8c5d6;
}

.test-badge strong {
    color: #d4a847;
}

/* Test Steps */
.test-steps {
    counter-reset: step;
}

.test-step {
    background: rgba(15, 20, 25, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #d4a847;
    position: relative;
}

.test-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -20px;
    top: 20px;
    background: #d4a847;
    color: #0f1419;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content {
    margin-left: 30px;
}

.step-title {
    color: #d4a847;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-description {
    color: #b8c5d6;
    margin-bottom: 15px;
    line-height: 1.7;
}

.step-note {
    color: #7ba3d1;
    font-style: italic;
    margin-top: 15px;
}

.step-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: #f0c35a;
    color: #0b1015;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    background: #f6cd6d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 168, 71, 0.4);
}

.btn-secondary {
    background: rgba(212, 168, 71, 0.1);
    color: #d4a847;
    border: 1px solid #d4a847;
}

.btn-secondary:hover {
    background: rgba(212, 168, 71, 0.2);
}

.btn-challenge {
    background: linear-gradient(135deg, #f0c35a 0%, #d7a441 100%);
    color: #0b1015;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.btn-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 168, 71, 0.4);
}

/* Copy Box */
.copy-box {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(212, 168, 71, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
    font-family: 'Courier New', monospace;
}

.copy-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.copy-label {
    font-size: 0.85rem;
    color: #d4a847;
    font-weight: 600;
}

.copy-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #7ba3d1;
    user-select: all;
    cursor: text;
}

.copy-feedback {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2ecc71;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
}

/* Verification Box */
.verification-box {
    background: rgba(15, 20, 25, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.verification-title {
    color: #d4a847;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(26, 35, 50, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-item:hover {
    background: rgba(26, 35, 50, 0.8);
    border-color: rgba(212, 168, 71, 0.3);
}

.checkbox-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #d4a847;
}

.checkbox-item label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    color: #e0e0e0;
}

.checkbox-item.selected {
    border-color: #d4a847;
    background: rgba(212, 168, 71, 0.1);
}

/* Complete Button */
.complete-test-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 25px;
    background: linear-gradient(135deg, #d4a847 0%, #c09636 100%);
    opacity: 0.5;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.complete-test-btn:not([disabled]) {
    opacity: 1;
    cursor: pointer;
}

.complete-test-btn:not([disabled]):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 168, 71, 0.5);
}

.complete-test-btn.completed {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%);
    border: 2px solid #2ecc71;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-title {
    color: #2ecc71;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-text {
    color: #b8c5d6;
    margin-bottom: 20px;
}

/* Stats Box */
.stats-box {
    background: rgba(15, 20, 25, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid rgba(212, 168, 71, 0.2);
}

.stats-title {
    color: #d4a847;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.stats-number {
    text-align: center;
    font-size: 2.5rem;
    color: #d4a847;
    font-weight: 300;
    margin-bottom: 10px;
}

.stats-breakdown {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #b8c5d6;
}

.stat-count {
    font-size: 1.2rem;
    color: #d4a847;
    font-weight: 600;
}

/* Progress Badge */
.progress-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 35, 50, 0.95);
    border: 2px solid #d4a847;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.progress-text {
    font-size: 0.85rem;
    color: #b8c5d6;
    margin-bottom: 5px;
}

.progress-status {
    font-size: 1.1rem;
    color: #d4a847;
    font-weight: 600;
}

.progress-status.completed {
    color: #2ecc71;
}

/* Challenge Box */
.challenge-box {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.15) 0%, rgba(26, 35, 50, 0.6) 100%);
    border: 2px solid rgba(212, 168, 71, 0.4);
    border-radius: 20px;
    padding: 35px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(212, 168, 71, 0.2);
}

.challenge-header {
    margin-bottom: 20px;
}

.challenge-badge {
    display: inline-block;
    background: rgba(212, 168, 71, 0.3);
    color: #d4a847;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.challenge-title {
    font-size: 1.8rem;
    color: #d4a847;
    font-weight: 400;
    margin: 0;
}

.challenge-content {
    margin: 25px 0;
}

.challenge-claim {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.challenge-claim strong {
    color: #d4a847;
}

.challenge-response {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.challenge-question {
    font-size: 1.1rem;
    color: #b8c5d6;
}

.challenge-action {
    font-size: 1.3rem;
    color: #d4a847;
    font-weight: 600;
}

.challenge-footer {
    font-size: 0.9rem;
    color: #7ba3d1;
    margin-top: 20px;
    font-style: italic;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .test-section {
        padding: 25px 20px;
    }

    .test-step::before {
        left: -15px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .step-content {
        margin-left: 20px;
    }

    .progress-badge {
        position: static;
        margin: 20px 0;
    }

    .challenge-box {
        padding: 25px 20px;
    }

    .copy-box-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-breakdown {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        min-width: auto;
    }
}

/* Loading state for counters */
.counter {
    opacity: 0.5;
}

.counter.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}
