/* ============================================
   IMPORT UNIFIED DESIGN SYSTEM TOKENS
   See assets/css/variables.css for token definitions
   ============================================ */
@import url('variables.css');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text);
}

body {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.resume-shell {
    width: min(1180px, 100%);
    display: grid;
    gap: 1.5rem;
}

.resume-header,
.resume-actions,
.preview-panel,
.resume-footer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.resume-header {
    display: grid;
    gap: 1rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resume-header h1 {
    margin: 0;
    font-size: clamp(2rem, 2.5vw, 2.6rem);
}

.subtext {
    margin: 0.5rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.resume-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resume-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.resume-nav a:hover,
.resume-nav a:focus-visible {
    background: var(--accent);
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.15);
    border-color: transparent;
}

.button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
    outline: none;
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.preview-note {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.resume-frame-shell {
    min-height: 70vh;
    max-height: calc(100vh - 220px);
    width: 100%;
    border-radius: 12px;
    overflow: auto;
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    display: grid;
    grid-template-areas: "content";
}

.pdf-viewer {
    grid-area: content;
    width: 100%;
    min-height: 70vh;
    border: 0;
    display: block;
    background: var(--background);
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.resume-fallback-card {
    grid-area: content;
    width: 100%;
    min-height: 18rem;
    display: grid;
    gap: 1rem;
    place-items: center;
    padding: 2rem;
    text-align: center;
    background: var(--background);
    color: var(--text);
    z-index: 1;
}

.resume-fallback-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.resume-fallback-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 420px;
}

.resume-fallback-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}




.mobile-note {
    display: none;
    margin-top: 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.mobile-note.visible {
    display: block;
}

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resume-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .resume-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .resume-frame-shell {
        aspect-ratio: auto;
        min-height: 55vh;
        max-height: none;
    }

    .pdf-viewer {
        min-height: 55vh;
    }
}

@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .resume-header,
    .resume-actions,
    .resume-footer {
        page-break-inside: avoid;
        box-shadow: none;
        border: none;
    }

    .resume-actions,
    .resume-nav {
        display: none;
    }

    iframe {
        min-height: 100vh;
    }
}
