/* =========================================
   2. CV PAGE SPECIFIC STYLES (cv.css)
   ========================================= */

.cv-page { padding-top: 0; }
.cv-section { padding: 140px 0; background: var(--bg-dark); }
.cv-header { background: #000; padding: 60px 0 40px; border-bottom: 1px solid #222; }
.cv-header-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; text-align: left; }

.cv-profile-image { width: 200px; height: 200px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 5px var(--accent), 0 0 20px rgba(0, 0, 0, 0.5); }
.cv-profile-image img { width: 100%; height: 100%; object-fit: cover; object-position: 42% top; transform: scale(2); transform-origin: 42% top; }

/* --- CV TITTELIOSION TYYLIT --- */
.cv-header-info .cv-main-title {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.cv-header-info .cv-sub-title {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.back-link { display: block; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.back-link:hover { color: white; }

.cv-grid-two-col { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 80px 24px; border-bottom: 1px solid #1a1a1a; }
.cv-heading { font-size: 1.5rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.cv-section-education { border-bottom: none; }

.cv-item { margin-bottom: 50px; }
.cv-item h4 { font-size: 1.25rem; color: white; margin-bottom: 4px; font-weight: 600; }
.cv-role { color: var(--accent); font-size: 0.9rem; display: block; margin-bottom: 12px; font-weight: 500;}

.cv-section-skills .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; display: grid;}
.cv-section-skills h4 { color: white; font-weight: 700; }
.cv-footer { padding: 30px 0; text-align: center; font-size: 0.9rem; color: #333; }

.cv-main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(10px); }
.cv-header-info h1 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }

.cv-bullet-list { margin-top: 12px; padding-left: 20px; color: var(--text-muted); font-size: 0.95rem; }
.cv-bullet-list li { margin-bottom: 6px; }
.cv-bullet-list strong { color: #e0e0e0; }

.cv-section-awards { border-bottom: 1px solid #1a1a1a; }
.cv-award-list { display: flex; flex-direction: column; gap: 12px; }
.cv-award-item { display: flex; align-items: baseline; gap: 24px; }
.cv-award-year { font-family: monospace; color: var(--text-muted); font-size: 0.9rem; min-width: 50px; }
.cv-award-title { color: white; font-weight: 600; margin-right: 8px; }
.cv-award-project { color: var(--accent); font-size: 0.9rem; font-weight: 400; }

/* --- RESPONSIVE CV --- */
@media (max-width: 1024px) {
    .cv-header-grid { grid-template-columns: 1fr !important; text-align: center !important; justify-items: center !important; }
    .cv-grid-two-col { grid-template-columns: 1fr !important; gap: 20px !important; }
    .cv-section-skills .skills-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .cv-award-item { flex-direction: column; gap: 4px; margin-bottom: 10px; }
}

/* =========================================
   COMPACT PRINT STYLES (1-PAGE A4 FIXED)
   ========================================= */
@media print {
    :root { --bg-dark: #ffffff !important; --text-main: #000000 !important; --text-muted: #000000 !important; --accent: #000000 !important; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; box-shadow: none !important; text-shadow: none !important; }
    /* PÄIVITETTY: Vaihdettu Inter -> Satoshi myös tulosteeseen */
    body { background-color: #ffffff !important; color: #000000 !important; font-family: 'Satoshi', sans-serif !important; font-size: 9pt !important; line-height: 1.25 !important; margin: 0 !important; padding: 0 !important; }
    .main-header, .cv-main-header, .back-link, .scroll-indicator, .lightbox, .cv-profile-image, .cv-footer .container p a { text-decoration: none; display: none !important; }
    .container { width: 100% !important; max-width: none !important; padding: 0 10mm !important; margin: 0 !important; }
    .cv-header { padding: 20px 0 10px !important; border-bottom: 2px solid #000 !important; margin-bottom: 5px !important; }
    .cv-header-grid { display: block !important; text-align: left !important; }
    .cv-header-info h1 { font-size: 18pt !important; margin: 0 0 2px 0 !important; color: #000 !important; text-transform: uppercase; }
    /* --- UUDET TITTELITYYLIT TULOSTUKSEEN --- */
    .cv-header-info .cv-main-title { font-size: 11pt !important; color: #000 !important; margin: 2px 0 0 0 !important; font-weight: 700 !important; }
    .cv-header-info .cv-sub-title { font-size: 9pt !important; color: #000 !important; margin: 0 !important; font-weight: 500 !important; opacity: 0.8; }
    .cv-grid-two-col { display: grid !important; grid-template-columns: 85px 1fr !important; gap: 15px !important; padding: 8px 0 !important; border-bottom: 1px solid #ddd !important; break-inside: avoid; }
    h1, h2, h3, h4, h5, p, span, li, a { color: #000000 !important; }
    .cv-heading { font-size: 9pt !important; text-transform: uppercase; font-weight: 800 !important; margin-top: 2px !important; }
    .cv-item h4 { font-size: 10pt !important; font-weight: 700 !important; margin-bottom: 0 !important; }
    .cv-role { font-size: 9pt !important; font-weight: 600 !important; font-style: italic !important; margin-bottom: 4px !important; display: block !important; }
    .cv-item p { margin-bottom: 4px !important; text-align: justify; }
    .cv-bullet-list { margin-top: 2px !important; padding-left: 15px !important; }
    .cv-bullet-list li { margin-bottom: 1px !important; }
    .cv-section-awards { padding: 6px 0 !important; }
    .cv-award-list { display: block !important; }
    .cv-award-item { display: flex !important; align-items: baseline !important; margin-bottom: 2px !important; }
    .cv-award-year { font-size: 9pt !important; font-weight: 700 !important; width: 45px !important; flex-shrink: 0; }
    .cv-award-title { font-weight: 700 !important; margin-right: 5px !important; }
    .cv-award-project { font-weight: 400 !important; font-style: italic !important; }
    .skills-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
    .skill-category h4 { font-size: 9pt !important; border-bottom: 1px solid #000; margin-bottom: 3px !important; padding-bottom: 2px !important; }
    .skill-category ul li { font-size: 8.5pt !important; }
    .cv-section-education { border-bottom: none !important; padding-top: 8px !important; padding-bottom: 0 !important; }
    .cv-footer { padding: 10px 0 0 !important; text-align: center; border: none !important; }
    .cv-footer p { font-size: 8pt !important; }
}
