/**
 * Resume theme polish — loaded after style.min.css.
 * Typography, form focus, print export, reduced-motion, and theme overrides.
 */

/* --- Purple gradient theme (replaces default green) --- */
:root {
    --themeColor: #8b5cf6;
    --themeHoverColor: #c4b5fd;
    --themeColorDark: #4c1d95;
    --themeGradient: linear-gradient(135deg, #4c1d95 0%, #7c3aed 52%, #a78bfa 100%);
    --themeGradientHover: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 52%, #c4b5fd 100%);
    --themeFocusRing: rgba(139, 92, 246, 0.28);
}

.bg-theme,
.hover\:bg-theme:hover {
    background-color: transparent !important;
    background-image: var(--themeGradient) !important;
}

.hover\:bg-themeHover:hover,
a.bg-theme:hover,
button.bg-theme:hover {
    background-image: var(--themeGradientHover) !important;
}

.border-theme,
.hover\:border-theme:hover,
.focus\:border-theme:focus,
:is(.dark .dark\:focus\:border-theme:focus) {
    border-color: #7c3aed;
}

.hover\:border-themeHover:hover {
    border-color: #a78bfa;
}

.border-theme.bg-theme,
a.border-theme.bg-theme,
button.border-theme.bg-theme {
    border-color: transparent;
}

.before\:bg-theme::before,
.after\:\!bg-theme::after,
.md\:before\:bg-theme::before {
    background-color: transparent !important;
    background-image: var(--themeGradient) !important;
}

.fill-theme {
    fill: #7c3aed;
}

.text-theme,
.hover\:text-theme:hover,
.group:hover .group-hover\:text-theme,
.group.active .group-\[\&\.active\]\:text-theme {
    color: var(--themeColor);
}

.hover\:shadow-theme_shadow:hover {
    --tw-shadow: 0px 5px 10px 0px rgba(124, 58, 237, 0.35);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

[class*='bg-theme/10'] {
    background-color: rgba(124, 58, 237, 0.12) !important;
}

[class*='hover:border-theme/40']:hover {
    border-color: rgba(124, 58, 237, 0.42) !important;
}

[class*='fill-theme'] {
    fill: #7c3aed;
}

/* --- Rich text from admin HTML (biography, experience) --- */
.resume-prose :where(p) {
    margin-block: 0.65em;
}

.resume-prose :where(p:first-child) {
    margin-top: 0;
}

.resume-prose :where(p:last-child) {
    margin-bottom: 0;
}

.resume-prose :where(a) {
    color: var(--themeColor);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.resume-prose :where(a:hover) {
    color: var(--themeHoverColor);
}

.resume-prose :where(ul, ol) {
    margin-block: 0.65em;
    padding-left: 1.35rem;
}

.resume-prose :where(ul) {
    list-style: disc;
}

.resume-prose :where(ol) {
    list-style: decimal;
}

.resume-prose :where(li + li) {
    margin-top: 0.35em;
}

.resume-prose :where(h2, h3, h4) {
    margin-top: 1.1em;
    margin-bottom: 0.45em;
    font-weight: 500;
    line-height: 1.35;
    color: inherit;
}

.resume-prose :where(h2) {
    font-size: 1.25rem;
}

.resume-prose :where(h3) {
    font-size: 1.125rem;
}

.resume-prose :where(h4) {
    font-size: 1rem;
}

.resume-prose :where(strong, b) {
    font-weight: 600;
}

.resume-prose :where(blockquote) {
    margin-block: 0.85em;
    padding-left: 1rem;
    border-left: 3px solid var(--themeColor);
    opacity: 0.9;
}

.resume-prose :where(code) {
    font-size: 0.9em;
    padding: 0.12em 0.35em;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.06);
}

.dark .resume-prose :where(code) {
    background: rgba(255, 255, 255, 0.08);
}

.resume-prose :where(table) {
    width: 100%;
    margin-block: 0.85em;
    border-collapse: collapse;
    font-size: 0.925em;
}

.resume-prose :where(th, td) {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-align: left;
}

.dark .resume-prose :where(th, td) {
    border-color: rgba(255, 255, 255, 0.12);
}

.resume-prose :where(th) {
    font-weight: 600;
}

/* --- Contact form --- */
.resume-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;
}

#resume-contact-form input,
#resume-contact-form textarea {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark #resume-contact-form input,
.dark #resume-contact-form textarea {
    border-color: rgba(255, 255, 255, 0.14);
}

#resume-contact-form input:focus-visible,
#resume-contact-form textarea:focus-visible {
    border-color: var(--themeColor);
    box-shadow: 0 0 0 3px var(--themeFocusRing);
    outline: none;
}

.resume-flash {
    padding: 1rem 1rem 1rem 2.5rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.resume-flash--success {
    color: #3d8b40;
    background: #edf9ee;
    border: 1px solid rgba(61, 139, 64, 0.35);
}

.resume-flash--error {
    color: #9e454b;
    background: #fcf0f1;
    border: 1px solid rgba(158, 69, 75, 0.35);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .custom_cursor_one,
    .custom_cursor_two {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Print / Save as PDF --- */
@media print {
    body {
        color: #111 !important;
        background: #fff !important;
    }

    .custom_cursor_one,
    .custom_cursor_two,
    .bg-lines,
    .mobile-menu-bar,
    .mobile-menu,
    .menu-overlay,
    .minfo__nav__wrapper,
    .hamburger {
        display: none !important;
    }

    .minfo__app {
        padding-top: 0 !important;
    }

    .minfo__sidebar__wrapper {
        position: static !important;
        transform: none !important;
        max-width: none !important;
        margin-bottom: 1.5rem;
    }

    .about-section,
    .service-section,
    [class*='section'] {
        break-inside: avoid;
    }

    .experience li {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a {
        color: #111 !important;
        text-decoration: underline;
    }

    .text-theme,
    [class*='text-theme'] {
        color: #7c3aed !important;
    }
}
