/* ==========================================
   PROFESSIONAL VAULT PAGE
   File: static/css/vault.css
   ========================================== */

.vault-page {
    --vault-primary: #5b3cdb;
    --vault-text: #192746;
    --vault-muted: #687590;
    --vault-border: #e2e8f4;

    min-height: 100vh;
    padding-bottom: 25px;
    background: #f5f8fe;
    color: var(--vault-text);
}

/* Hero */

.vault-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    min-height: 285px;
    padding: 48px max(6%, calc((100% - 1380px) / 2));
    overflow: hidden;
    background: linear-gradient(115deg, #111b37, #1c2d65 65%, #342078);
    color: #fff;
}

.vault-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.vault-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
    color: #dedaff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.vault-eyebrow span {
    width: 35px;
    height: 4px;
    border-radius: 10px;
    background: #a794ff;
}

.vault-hero h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.3px;
}

.vault-hero h1 span {
    color: #aa99ff;
}

.vault-hero-inner > p {
    max-width: 620px;
    margin: 0;
    color: #d2dcf5;
    font-size: 1rem;
    line-height: 1.8;
}

.vault-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.vault-highlights span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e1e7ff;
    font-size: 0.82rem;
}

.vault-highlights i {
    color: #a99aff;
}

/* Hero illustration */

.vault-illustration {
    position: relative;
    flex: 0 0 300px;
    height: 220px;
}

.vault-glow {
    position: absolute;
    top: 5px;
    right: 0;
    width: 205px;
    height: 205px;
    border-radius: 50%;
    background: linear-gradient(140deg, #3a53a8, #34217e);
    opacity: 0.65;
}

.vault-folder {
    position: absolute;
    z-index: 2;
    top: 55px;
    right: 25px;
    width: 225px;
    height: 140px;
    padding: 12px;
    border: 1px solid #9c9bff;
    border-radius: 10px;
    background: linear-gradient(145deg, #4655a4, #1a254e);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: rotate(-5deg);
}

.vault-folder-tab {
    position: absolute;
    top: -12px;
    left: 12px;
    width: 75px;
    height: 16px;
    border-radius: 6px 6px 0 0;
    background: #8b8cff;
}

.vault-folder-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
}

.vault-folder-content i {
    color: #c3bdff;
    font-size: 1.5rem;
}

.vault-folder-content > span {
    color: #edf0ff;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.vault-folder-line {
    width: 75%;
    height: 4px;
    border-radius: 5px;
    background: #7c8de7;
}

.vault-folder-line.short {
    width: 48%;
}

.vault-award {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 15px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 2px solid #a99aff;
    border-radius: 16px;
    background: #4c36b8;
    color: #fff;
    font-size: 1.6rem;
    transform: rotate(8deg);
}

/* Main content */

.vault-container {
    width: min(1380px, 88%);
    margin: 0 auto;
}

.vault-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 0 24px;
}

.vault-section-label {
    display: block;
    margin-bottom: 9px;
    color: var(--vault-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.vault-section-heading h2 {
    margin: 0 0 9px;
    color: var(--vault-text);
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.7px;
}

.vault-section-heading p {
    margin: 0;
    color: var(--vault-muted);
    font-size: 0.93rem;
    line-height: 1.8;
}

.vault-count {
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1px solid var(--vault-border);
    border-radius: 8px;
    background: #fff;
    color: #68748c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Cards grid */

.vault-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.vault-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 23px;
    border: 1px solid var(--vault-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(35, 53, 95, 0.035);
    transition:
        transform 0.23s ease,
        box-shadow 0.23s ease,
        border-color 0.23s ease;
}

.vault-card:hover {
    transform: translateY(-4px);
    border-color: #c9bdff;
    box-shadow: 0 14px 30px rgba(40, 48, 100, 0.09);
}

.vault-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.vault-icon {
    display: grid;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 15px;
    background: #ece8ff;
    color: #5b3cdb;
    font-size: 1.4rem;
}

.vault-type {
    padding: 6px 8px;
    border-radius: 6px;
    background: #f0edff;
    color: #5b3cdb;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.vault-card h3 {
    margin: 0 0 10px;
    color: #192746;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.45;
}

.vault-card > p {
    flex: 1;
    margin: 0;
    color: #687590;
    font-size: 0.88rem;
    line-height: 1.8;
}

/* Card accents */

.vault-resume .vault-icon {
    background: #ffe9ec;
    color: #e34c68;
}

.vault-resume .vault-type {
    background: #fff0f2;
    color: #d83d5b;
}

.vault-powerbi .vault-icon {
    background: #fff2d2;
    color: #ad7900;
}

.vault-powerbi .vault-type {
    background: #fff6e3;
    color: #946800;
}

.vault-cisco .vault-icon {
    background: #e2f5ff;
    color: #1683bc;
}

.vault-cisco .vault-type {
    background: #eaf7ff;
    color: #1676a8;
}

.vault-upcoming .vault-icon {
    background: #e8f1ff;
    color: #4774d5;
}

.vault-upcoming .vault-type {
    background: #edf3ff;
    color: #4774d5;
}

/* Tags */

.vault-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.vault-tags span {
    padding: 6px 9px;
    border-radius: 6px;
    background: #f0edff;
    color: #5540b4;
    font-size: 0.68rem;
    font-weight: 600;
}

.vault-tags span:nth-child(2) {
    background: #eaf2ff;
    color: #315fae;
}

/* Buttons */

.vault-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    gap: 10px;
    margin-top: 23px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #5b3cdb;
    color: #fff;
    font-size: 0.81rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.vault-link:hover {
    filter: brightness(0.92);
    box-shadow: 0 5px 14px rgba(35, 45, 100, 0.15);
    color: #fff;
}

.vault-link:focus-visible {
    outline: 3px solid #b9aaff;
    outline-offset: 3px;
}

.vault-resume .vault-link {
    background: #d83d5b;
}

.vault-powerbi .vault-link {
    background: #b7830b;
}

.vault-cisco .vault-link {
    background: #1676a8;
}

.vault-upcoming .vault-link {
    background: #4774d5;
}

/* Coming soon status */

.vault-status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 23px;
    padding: 10px 12px;
    border: 1px solid #e4e8f0;
    border-radius: 8px;
    background: #f6f8fc;
    color: #79849b;
    font-size: 0.8rem;
    font-weight: 700;
}

.vault-placeholder {
    cursor: default;
    opacity: 0.85;
}

/* Footer */

.vault-footer {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 36px 0 8px;
}

.vault-footer > span {
    flex: 1;
    height: 1px;
    background: #dbe3f2;
}

.vault-footer p {
    margin: 0;
    color: #8190ad;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-align: center;
    white-space: nowrap;
}

.vault-footer b {
    margin: 0 7px;
    color: #6449e9;
}

/* Tablet */

@media (max-width: 1000px) {
    .vault-hero {
        padding: 42px 6%;
    }

    .vault-illustration {
        flex-basis: 250px;
        transform: scale(0.9);
        transform-origin: right center;
    }

    .vault-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 650px) {
    .vault-hero {
        min-height: auto;
        padding: 38px 6%;
    }

    .vault-hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.8px;
    }

    .vault-hero-inner > p {
        font-size: 0.93rem;
    }

    .vault-illustration {
        display: none;
    }

    .vault-highlights {
        gap: 13px 17px;
    }

    .vault-container {
        width: 90%;
    }

    .vault-section-heading {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 32px;
    }

    .vault-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vault-card {
        padding: 21px;
    }

    .vault-link {
        align-self: stretch;
    }

    .vault-footer {
        gap: 10px;
    }

    .vault-footer p {
        font-size: 0.58rem;
        letter-spacing: 1px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .vault-card,
    .vault-link {
        transition: none;
    }

    .vault-card:hover {
        transform: none;
    }
}

/* Dark mode */

body.dark-mode .vault-page {
    background: #0f1425;
}

body.dark-mode .vault-section-heading h2 {
    color: #edf0ff;
}

body.dark-mode .vault-section-heading p {
    color: #aab5ce;
}

body.dark-mode .vault-count {
    border-color: #303853;
    background: #181f34;
    color: #d5dcf0;
}

body.dark-mode .vault-card {
    border-color: #29334d;
    background: #181f34;
}

body.dark-mode .vault-card h3 {
    color: #edf0ff;
}

body.dark-mode .vault-card > p {
    color: #b0bbd2;
}

body.dark-mode .vault-status {
    border-color: #303853;
    background: #202943;
    color: #b0bbd2;
}

body.dark-mode .vault-footer > span {
    background: #303853;
}