/* ========================================
   PVH DESIGN SYSTEM - BASE STYLESHEET
   ========================================
   Közös stílusok az összes tananyag HTML-hez.
   Egy helyen módosítható → minden oldalon érvényesül.
   Verzió: 1.0 • 2026-02-18
   ======================================== */

/* ========================================
   1. CSS VÁLTOZÓK (SZÍNPALETTA)
   Forrás: pvh-tokens.css — ide beágyazva az @import waterfall elkerülésére.
   Ha tokent módosítasz, frissítsd pvh-tokens.css-t ÉS itt ÉS style.css-ben!
   ======================================== */

:root {
    --pvh-navy: #1a2332;
    --pvh-charcoal: #2d3748;
    --pvh-amber: #d97706;
    --pvh-amber-text: #b45309;
    --pvh-terracotta: #c2410c;
    --pvh-cream: #fef3c7;
    --pvh-light: #f8fafc;
    --pvh-success: #059669;
    --pvh-text-dark: #1e293b;
    --pvh-text-light: #64748b;
    --pvh-info: #0284c7;
    --pvh-warning: #ca8a04;
    --pvh-error: #dc2626;
    --pvh-border: #e2e8f0;
    --pvh-amber-muted: #92681d;
    --pvh-charcoal-light: #475569;
}

/* ========================================
   2. RESET ÉS ALAP
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--pvh-text-dark);
    background-color: var(--pvh-light);
}

/* ========================================
   2b. ACCESSIBILITY UTILITIES
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pvh-navy);
    color: var(--pvh-cream);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--pvh-amber);
    outline-offset: 2px;
}

input:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--pvh-amber);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   3. TIPOGRÁFIA
   ======================================== */

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    color: var(--pvh-navy);
    border-bottom: 3px solid var(--pvh-amber);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-top: 0;
}

a { transition: color 0.3s ease; }
ol li { margin-bottom: 0.5rem; }

/* ========================================
   4. NAVIGÁCIÓ (back-nav)
   ======================================== */

.back-nav-top {
    background: var(--pvh-navy);
    padding: 0.75rem 1rem;
}

.back-nav-top a {
    color: var(--pvh-amber-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-nav-top a:hover {
    text-decoration: underline;
}

/* ========================================
   5. HEADER
   ======================================== */

.header {
    padding: 3rem 2rem;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Variánsok */
.header--lesson {
    background: linear-gradient(135deg, var(--pvh-navy) 0%, var(--pvh-charcoal) 100%);
    color: var(--pvh-cream);
}

.header--practice {
    background: linear-gradient(135deg, var(--pvh-terracotta) 0%, var(--pvh-amber) 100%);
    color: white;
}

/* ========================================
   6. LAYOUT
   ======================================== */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   7. TÁBLÁZATOK
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th {
    background: var(--pvh-navy);
    color: white;
    padding: 0.75rem;
    text-align: left;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--pvh-border);
}

tr:nth-child(even) {
    background: var(--pvh-light);
}

/* ========================================
   8. DOBOZOK (NOTE / INFO / SUCCESS / PROMPT / QUOTE)
   ======================================== */

.note,
.info-box {
    background: var(--pvh-cream);
    border-left: 4px solid var(--pvh-amber);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid var(--pvh-success);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.prompt-box {
    position: relative;
    background: var(--pvh-light);
    border: 1px solid var(--pvh-border);
    border-left: 4px solid var(--pvh-navy);
    padding: 1.5rem;
    font-family: Consolas, 'SF Mono', 'Liberation Mono', monospace;
    margin: 1rem 0;
    color: var(--pvh-charcoal);
}

/* Copy-to-clipboard gomb a prompt-box-okban */
.prompt-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--pvh-navy, #1a2332);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s;
    z-index: 1;
}

.prompt-box:hover .prompt-copy-btn,
.prompt-copy-btn:focus {
    opacity: 1;
}

.prompt-copy-btn.copied {
    background: var(--pvh-success, #059669);
}

/* Touch devices: always show (no hover available) */
@media (hover: none) {
    .prompt-copy-btn {
        opacity: 0.7;
    }
}

.quote-box {
    background: var(--pvh-navy);
    color: var(--pvh-cream);
    padding: 2rem;
    border-radius: 12px;
    font-style: italic;
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem 0;
}

blockquote {
    border-left: 4px solid var(--pvh-amber);
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    background: var(--pvh-light);
    font-style: italic;
}

/* ========================================
   9. BADGE-EK
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-theory { background: var(--pvh-navy); color: white; }
.badge-practice { background: var(--pvh-terracotta); color: white; }

/* ========================================
   10. META KÁRTYÁK (gyakorlatoknál)
   ======================================== */

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-card {
    background: var(--pvh-navy);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.meta-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.meta-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--pvh-amber);
}

/* ========================================
   11. TIMELINE
   ======================================== */

.timeline { margin: 2rem 0; }

.timeline-item {
    border-left: 3px solid var(--pvh-amber);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-date {
    color: var(--pvh-amber);
    font-weight: bold;
    font-size: 0.9rem;
}

/* ========================================
   12. CHECKLIST
   ======================================== */

ul.checklist {
    list-style: none;
    padding-left: 0;
}

ul.checklist li {
    padding: 0.5rem 0;
}

ul.checklist li::before {
    content: "\2610 ";
    color: var(--pvh-amber);
}

/* ========================================
   13. FOOTER
   ======================================== */

.content-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pvh-border);
    color: var(--pvh-text-light);
    font-size: 0.9rem;
}

/* ========================================
   14. SCROLL REVEAL
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    @keyframes pvhRevealUp {
        from {
            opacity: 0;
            transform: translateY(24px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    [data-reveal] {
        opacity: 0;
    }

    [data-reveal].revealed {
        animation: pvhRevealUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }
}

/* ========================================
   15. RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .header h1 { font-size: 1.8rem; }
    .header { padding: 2rem 1rem; }

    .container { padding: 1rem; }

    section { padding: 1.5rem; }

    .meta-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    table { font-size: 0.9rem; }
    th, td { padding: 0.5rem; }
}

/* ========================================
   15. PRINT
   ======================================== */

@media print {
    body { background: white; }
    .back-nav-top { display: none; }
    .header { padding: 1rem; }
    section { box-shadow: none; border: 1px solid #ddd; }
}
