@import '_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    --brand-500: #1f8cb8;
    --brand-600: #0f79a5;
    --brand-700: #095f86;
    --brand-200: #9fd8ec;
    --brand-150: #b7e2f1;
    --brand-100: #d3eef8;
    --brand-050: #ecf8fd;
    --accent-fill-rest: var(--brand-500);
    --accent-fill-hover: var(--brand-600);
    --accent-fill-active: var(--brand-700);
    --accent-foreground-rest: #ffffff;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0;
}

.site-header {
    background: linear-gradient(120deg, #0b6088 0%, var(--brand-500) 52%, #17a3d6 100%);
    color: #ffffff;
    border-bottom: 1px solid #084e6f;
    box-shadow: 0 10px 24px rgba(9, 95, 134, 0.32);
}

.site-header * {
    color: inherit;
}

.navmenu-icon {
    display: none;
}

.main {
    min-height: calc(100dvh - 86px);
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.body-content {
    align-self: stretch;
    height: calc(100dvh - 86px) !important;
    display: flex;
}

.content {
    padding: 0.5rem 1.5rem;
    align-self: stretch !important;
    width: 100%;
}

.resume-page {
    gap: 1rem;
}

.resume-page>* {
    width: 100%;
    box-sizing: border-box;
}

.resume-hero,
.resume-heading {
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--brand-050) 0%, #ffffff 100%);
    border: 1px solid var(--brand-150);
    margin-bottom: 1.5rem;
}

.resume-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.resume-hero>.resume-summary {
    grid-column: 1 / -1;
}

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

.resume-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.25rem 0 0.75rem;
    color: var(--brand-700);
}

.hero-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.resume-summary {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

.company-summary {
    max-width: none;
}

.country-summary {
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.resume-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.resume-section-grid,
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.skills-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.75rem;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: auto;
    scrollbar-color: var(--brand-500) var(--brand-100);
}

.equal-height-row {
    align-items: stretch;
}

.equal-height-row>.resume-card {
    height: 100%;
}

.resume-card {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--brand-150);
    background: #fff;
    box-shadow: 0 10px 30px rgba(28, 54, 86, 0.06);
}

.resume-list {
    margin: 0;
    padding-left: 1.25rem;
}

.resume-list li {
    margin-bottom: 0.75rem;
}

.profiles-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.profiles-list li {
    margin-bottom: 0;
}

.resume-muted {
    display: block;
    color: #587089;
    font-size: 0.95rem;
}

.resume-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-700);
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.resume-pill-accent {
    background: var(--brand-100);
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
}

.resume-pill-success {
    background: #c3e9f7;
    color: #0b5573;
    border: 1px solid #97d8ee;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.experience-card {
    padding-top: 0.9rem;
}

.experience-accordion {
    display: block;
    width: 100%;
}

.experience-item {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    border: 1px solid var(--brand-150);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(28, 54, 86, 0.06);
    overflow: hidden;
}

.experience-title-block {
    flex: 1 1 auto;
    min-width: 0;
}

.experience-position {
    margin: 0;
    line-height: 1.25;
}

.experience-meta-row {
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-wrap: wrap;
}

.experience-company-text {
    display: inline-block;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--brand-700);
    line-height: 1.3;
    white-space: nowrap;
}

.experience-date {
    font-size: 0.82rem;
    line-height: 1.2;
    flex: 0 0 auto;
}

.experience-content {
    margin-top: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.resume-page a {
    color: var(--brand-500);
    text-decoration: underline;
    text-underline-offset: 0.12em;
    font-weight: 600;
}

.resume-page a:hover {
    color: var(--brand-700);
}

.resume-page a:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 0.2rem;
}


.company-chart-host {
    width: 100%;
    padding-bottom: 15rem;
}

.company-chart-host .company-chart {
    width: 100%;
}

.company-chart-scroll {
    overflow-y: auto;
    max-height: min(70vh, 38rem);
}

.company-chart-scroll .resume-card {
    min-height: 28rem;
}

@media (max-width: 1366px) {
    .company-chart-scroll {
        max-height: min(66vh, 34rem);
    }
}

.country-graph-host {
    width: 100%;
    min-height: 22rem;
    height: clamp(22rem, 58vh, 34rem);
    border-radius: 1rem;
    border: 1px solid var(--brand-150);
    background:
        radial-gradient(circle at top right, rgba(31, 140, 184, 0.22), transparent 32%),
        linear-gradient(180deg, #fbfeff 0%, var(--brand-050) 100%);
    overflow: hidden;
}

.country-graph-canvas {
    width: 100%;
    height: 100%;
}

.skills-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list li {
    margin-bottom: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 0.2rem;
    background: var(--brand-100);
    border: 1px solid var(--brand-200);
}

.heart {
    color: #e81e1e;
    margin: 0 0.25rem;
}

.manage {
    width: 100dvw;
}

footer {
    background: var(--neutral-layer-4);
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 10px 10px;
}

footer a {
    color: #1f8cb8;
    text-decoration: none;
}

footer a:focus {
    outline: 1px dashed;
    outline-offset: 3px;
}

footer a:hover {
    text-decoration: underline;
}

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
    margin: 10px 0;
}

.alert-danger {
    border: 1px dashed var(--error);
}

.alert-success {
    border: 1px dashed var(--success);
}

.alert-warning {
    border: 1px dashed var(--warning);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMj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TUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::before {
    content: "An error has occurred. "
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--brand-500);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

@media (max-width: 600px) {
    .header-gutters {
        margin: 0.5rem 3rem 0.5rem 1.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem 1.5rem 0.5rem 3rem !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

    #main-menu>div:first-child:is(.expander) {
        display: none;
    }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

    #navmenu-toggle~nav {
        display: none;
    }

    #navmenu-toggle:checked~nav {
        display: block;
    }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    .resume-hero,
    .resume-section-grid,
    .timeline-header {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        flex-direction: column;
    }

    .skills-scroll {
        -webkit-overflow-scrolling: touch;
    }

    .skills-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(18rem, 24rem);
        width: max-content;
        gap: 1rem;
        scroll-snap-type: x proximity;
    }

    .skills-grid > .resume-card {
        scroll-snap-align: start;
    }

    .skills-scroll::-webkit-scrollbar {
        height: 0.85rem;
    }

    .skills-scroll::-webkit-scrollbar-track {
        background: var(--brand-100);
        border-radius: 999px;
    }

    .skills-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
        border-radius: 999px;
        border: 3px solid var(--brand-100);
    }

    .skills-scroll::-webkit-scrollbar-thumb:hover {
        background: var(--brand-700);
    }

    .experience-header-row {
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
    }

    .experience-header-actions {
        margin-left: auto;
        align-items: flex-end;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }

    .country-graph-host {
        min-height: 18rem;
        height: 48vh;
    }
}

/* Custom spacing for FluentTab headers */
.fluent-tabs .fluent-tab {
    margin-right: 1.5rem;
}

.fluent-tabs .fluent-tab:last-child {
    margin-right: 0;
}

/* Wider tree view for skills */
.skills-treeview {
    min-width: 420px;
    max-width: 100%;
    width: 48rem;
}

/* Table */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table td,
table th {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    text-align: left;
    vertical-align: middle;
    border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
}
