/* Kaartenspel Styles - Simpel en werkend */

/* Game Layout */
.game-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
}

/* Sidebar */
.game-sidebar {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.game-sidebar h3 {
    color: var(--js-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-info {
    margin-bottom: 2rem;
}

.progress-text {
    color: var(--js-neutral);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--js-success);
    width: 0%;
    transition: width 0.3s ease;
}

.phase-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.phase-icon {
    font-size: 1.5rem;
}

.phase-name {
    color: var(--js-dark);
    font-weight: 500;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Main Game Area */
.game-main {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screen Management */
.screen {
    width: 100%;
    padding: 3rem;
    text-align: center;
}

.screen.hidden {
    display: none;
}

/* Start Screen */
.start-content h2 {
    color: var(--js-dark);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.start-content p {
    color: var(--js-neutral);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* 3D Flip Card */
.flip-card {
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
    height: 420px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

/* White front side */
.flip-card-front {
    background: white;
    border: 2px solid #d1d5db;
}

/* Yellow back side */
.flip-card-back {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 3px solid #d97706;
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.flip-card-back h3 {
    color: #92400e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.flip-card-back .instruction-text {
    color: #451a03;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.flip-card-back .action-text {
    background: rgba(146, 64, 14, 0.1);
    border: 2px solid #d97706;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #92400e;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255,255,255,0.7);
    line-height: 1.4;
}

.card-header {
    background: #f8fafc;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.card-number {
    background: var(--js-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-category {
    color: var(--js-neutral);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 2rem;
}

.card-question {
    color: var(--js-dark);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.card-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.card-buttons .btn {
    min-width: 120px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Instruction Styles - Yellow card back */
.instruction {
    max-width: 500px;
    margin: 0 auto;
}

.instruction-content {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 3px solid #d97706;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.instruction-content::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
}

.instruction-content h3 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.instruction-text {
    color: #451a03;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

/* Complete Screen */
.complete-content h2 {
    color: var(--js-dark);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.complete-content p {
    color: var(--js-neutral);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.complete-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-sidebar {
        position: static;
        order: 2;
    }
    
    .screen {
        padding: 2rem;
    }
    
    .card-buttons {
        flex-direction: column;
    }
    
    .card-buttons .btn {
        width: 100%;
    }
    
    .complete-buttons {
        flex-direction: column;
    }
}

/* Card animations and effects */
.card-flip {
    animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card hover effects */
.card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.instruction-content:hover {
    box-shadow: 0 12px 35px rgba(217, 119, 6, 0.3);
    transform: translateY(-2px);
}

/* Button enhancements */
.card-buttons .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.card-buttons .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Introduction Section Styles */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.intro-text h3 {
    color: var(--js-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.intro-text h3:first-of-type {
    margin-top: 0;
}

.intro-text p {
    color: var(--js-neutral);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.key-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid var(--js-primary);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-item h4 {
    color: var(--js-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--js-neutral);
    margin: 0;
    font-size: 0.95rem;
}

/* Process Steps Visual */
.process-steps {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.step-item {
    text-align: center;
    padding: 1rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--js-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-item h4 {
    color: var(--js-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--js-neutral);
    font-size: 0.9rem;
    margin: 0;
}

.step-arrow {
    text-align: center;
    color: var(--js-primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Usage Steps */
.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.usage-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usage-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.usage-step h3 {
    color: var(--js-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.usage-step p {
    color: var(--js-neutral);
    line-height: 1.6;
    margin: 0;
}

/* CTA Box */
.cta-box {
    text-align: center;
    background: linear-gradient(135deg, var(--js-primary) 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.cta-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-box .btn {
    background: white;
    color: var(--js-primary);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Research Content */
.research-content {
    margin-top: 2rem;
}

.research-overview {
    margin-bottom: 4rem;
}

.research-overview h3 {
    color: var(--js-dark);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.research-overview p {
    color: var(--js-neutral);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Theoretische basis styling - consistent met Leercirkel */
.bron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.bron-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.bron-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bron-header h3 {
    color: var(--js-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.bron-auteur {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.bron-citaat {
    background: #f8fafc;
    border-left: 4px solid var(--js-primary);
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #475569;
    line-height: 1.6;
}

.bron-link {
    margin-top: 1rem;
}

.bron-link a {
    display: inline-flex;
    align-items: center;
    color: var(--js-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bron-link a:hover {
    color: var(--js-accent);
}

.bron-link a:before {
    content: "📄";
    margin-right: 0.5rem;
}

/* Research Results */
.research-results h3 {
    color: var(--js-dark);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.result-highlight {
    margin-bottom: 3rem;
}

.result-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0891b2;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.result-box h4 {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-box p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Research Highlights */
.research-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-left: 4px solid var(--js-success);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item h4 {
    color: var(--js-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.highlight-item p {
    color: var(--js-neutral);
    line-height: 1.6;
    margin: 0;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.quote-box blockquote {
    margin: 0;
}

.quote-box blockquote p {
    color: var(--js-dark);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
}

.quote-box blockquote p::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--js-primary);
    position: absolute;
    left: -1rem;
    top: -0.5rem;
}

.quote-box blockquote p::after {
    content: "\201D";
    font-size: 3rem;
    color: var(--js-primary);
    position: absolute;
    right: -1rem;
    bottom: -1rem;
}

.quote-box cite {
    color: var(--js-neutral);
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .usage-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bron-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bron-card {
        padding: 1rem;
    }
    
    .bron-header h3 {
        font-size: 1rem;
    }
    
    .bron-citaat {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .research-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cta-box {
        padding: 2rem 1rem;
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
    
    .quote-box blockquote p::before,
    .quote-box blockquote p::after {
        font-size: 2rem;
    }
    
    .highlight-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }
}