/* =========================================================
   VISIT MY PROFILE — PREMIUM FOOTER & CATALOGUE V8
   Loaded last. Introduces the midnight-blue premium footer
   and a searchable, responsive template catalogue.
   ========================================================= */

:root {
    --vmp-v8-ink: #071735;
    --vmp-v8-blue: #1769ff;
    --vmp-v8-blue-deep: #0754e8;
    --vmp-v8-muted: #617089;
    --vmp-v8-line: rgba(31, 83, 158, .12);
}

/* ---------- Premium footer ---------- */

.vmp-footer-v2 {
    position: relative;
    overflow: hidden;
    padding: 0 0 30px !important;
    color: #d8e4f8 !important;
    border-top: 1px solid rgba(111, 173, 255, .34);
    background:
        radial-gradient(circle at 7% 14%, rgba(40, 125, 255, .30), transparent 30%),
        radial-gradient(circle at 94% 86%, rgba(7, 98, 231, .24), transparent 32%),
        linear-gradient(145deg, #041127 0%, #071b3e 42%, #0a2d63 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.vmp-footer-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(122, 177, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 177, 255, .05) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 74%);
    mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

.vmp-footer-v2 > .container {
    position: relative;
    z-index: 1;
}

.vmp-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 42px 44px;
    margin: 0 0 62px;
    border: 1px solid rgba(152, 198, 255, .20);
    border-top: 0;
    border-radius: 0 0 28px 28px;
    background:
        radial-gradient(circle at 88% 18%, rgba(114, 180, 255, .24), transparent 34%),
        linear-gradient(135deg, rgba(18, 71, 145, .84), rgba(8, 40, 90, .86));
    box-shadow: 0 24px 70px rgba(0, 8, 25, .24), inset 0 1px 0 rgba(255, 255, 255, .11);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.vmp-footer-cta-kicker {
    display: block;
    margin-bottom: 9px;
    color: #8fc4ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.vmp-footer-cta h2 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: clamp(27px, 2.5vw, 39px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.vmp-footer-cta p {
    max-width: 680px !important;
    margin: 13px 0 0 !important;
    color: #c7d8f1;
    font-size: 14px;
    line-height: 1.65 !important;
}

.vmp-footer-cta-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.vmp-footer-v2 .vmp-footer-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.vmp-footer-v2 .vmp-footer-button:hover {
    transform: translateY(-2px);
}

.vmp-footer-v2 .vmp-footer-button-primary {
    color: #fff;
    background: linear-gradient(145deg, #2b82ff, #0a5bea);
    box-shadow: 0 14px 30px rgba(0, 75, 199, .28), inset 0 1px 0 rgba(255, 255, 255, .26);
}

.vmp-footer-v2 .vmp-footer-button-secondary {
    color: #e7f1ff;
    border-color: rgba(181, 214, 255, .25);
    background: rgba(255, 255, 255, .055);
}

.vmp-footer-grid {
    grid-template-columns: minmax(330px, 1.35fr) minmax(170px, .62fr) minmax(260px, .85fr) !important;
    gap: clamp(34px, 6vw, 88px) !important;
    padding-bottom: 54px !important;
}

.vmp-footer-brand {
    padding: 29px;
    border: 1px solid rgba(159, 199, 255, .13);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 55px rgba(0, 7, 22, .17);
}

.vmp-footer-logo-shell {
    display: inline-flex;
    padding: 11px 15px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f1f6ff);
    box-shadow: 0 15px 34px rgba(0, 8, 26, .24), inset 0 1px 0 #fff;
}

.vmp-footer-logo-shell .vmp-footer-logo {
    width: 188px !important;
    margin: 0 !important;
}

.vmp-footer-v2 .vmp-footer-brand > p {
    max-width: 500px !important;
    margin: 0;
    color: #c3d2e8;
    font-size: 14px;
    line-height: 1.75 !important;
}

.vmp-footer-column {
    padding-top: 18px;
}

.vmp-footer-v2 h3 {
    position: relative;
    margin-bottom: 24px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .16em !important;
}

.vmp-footer-v2 h3::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 11px;
    border-radius: 99px;
    background: linear-gradient(90deg, #4a9cff, transparent);
}

.vmp-footer-links {
    gap: 13px !important;
}

.vmp-footer-links a,
.vmp-footer-links span {
    color: #c1cfe4 !important;
    font-size: 13.5px;
    line-height: 1.6;
}

.vmp-footer-links a {
    width: fit-content;
    transition: color 160ms ease, transform 160ms ease;
}

.vmp-footer-links a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

.vmp-footer-social {
    margin-top: 24px !important;
}

.vmp-footer-social a {
    width: 42px !important;
    height: 42px !important;
    color: #d9e8ff !important;
    border-color: rgba(159, 199, 255, .22) !important;
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.vmp-footer-social a:hover {
    color: #fff !important;
    border-color: rgba(101, 164, 255, .68) !important;
    background: rgba(23, 105, 255, .22);
}

.vmp-footer-bottom {
    padding: 25px 0 0 !important;
    color: #8fa4c4;
    border-top-color: rgba(139, 181, 237, .16) !important;
    font-size: 12.5px !important;
    letter-spacing: .015em;
}

/* ---------- Searchable catalogue ---------- */

.vmp-template-catalogue-v8 {
    min-height: 70vh;
}

.vmp-template-catalogue-hero {
    padding-bottom: 64px !important;
}

.vmp-template-catalogue-hero .container {
    max-width: 1040px;
}

.vmp-template-catalogue-hero p {
    max-width: 760px !important;
}

.vmp-template-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 850px;
    padding: 8px;
    margin: 34px auto 0;
    border: 1px solid rgba(23, 105, 255, .15);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 20px 52px rgba(24, 73, 143, .11), inset 0 1px 0 #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.vmp-template-search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(36, 81, 146, .09);
    border-radius: 12px;
    background: #f8fbff;
}

.vmp-template-search-field > i {
    color: #7a8aa3;
    font-size: 14px;
}

.vmp-template-search-field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--vmp-v8-ink);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.vmp-template-search-field input::placeholder {
    color: #8794a8;
}

.vmp-template-search-clear {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    color: #718198;
    border: 0;
    border-radius: 8px;
    background: #eaf1fb;
}

.vmp-template-search-submit {
    min-height: 52px;
    padding: 0 23px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, #277dff, #0757e8);
    box-shadow: 0 13px 26px rgba(23, 105, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .26);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.vmp-template-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 920px;
    margin: 21px auto 0;
}

.vmp-template-category-list button {
    padding: 8px 13px;
    color: #66758c;
    border: 1px solid rgba(31, 77, 143, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    font-size: 11.5px;
    font-weight: 680;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.vmp-template-category-list button:hover,
.vmp-template-category-list button.is-active {
    color: #0754e8;
    border-color: rgba(23, 105, 255, .25);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(23, 105, 255, .08);
}

.vmp-template-catalogue-body {
    padding-top: 58px !important;
}

.vmp-template-results-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.vmp-template-results-bar span {
    display: block;
    margin-bottom: 6px;
    color: var(--vmp-v8-blue-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.vmp-template-results-bar strong {
    display: block;
    color: var(--vmp-v8-ink);
    font-size: clamp(22px, 2.3vw, 31px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.vmp-template-results-bar strong b {
    color: var(--vmp-v8-blue);
}

.vmp-template-results-bar p {
    max-width: 440px;
    margin: 0;
    color: #6b7890;
    font-size: 12.5px;
    line-height: 1.6;
    text-align: right;
}

.vmp-template-catalogue-v8 .vmp-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 25px !important;
}

.vmp-template-catalogue-v8 .vmp-template-card {
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(24, 72, 139, .11) !important;
    border-radius: 23px !important;
    background: linear-gradient(145deg, #fff, #f8fbff) !important;
    box-shadow: 0 20px 46px rgba(28, 70, 132, .09), inset 0 1px 0 #fff !important;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.vmp-template-catalogue-v8 .vmp-template-card:hover {
    transform: translateY(-5px);
    border-color: rgba(23, 105, 255, .22) !important;
    box-shadow: 0 27px 58px rgba(24, 74, 147, .15), inset 0 1px 0 #fff !important;
}

.vmp-template-card[hidden] {
    display: none !important;
}

.vmp-template-card-media {
    position: relative;
    height: 430px;
    margin: 11px 11px 0;
    overflow: hidden;
    border: 1px solid rgba(32, 78, 142, .08);
    border-radius: 17px;
    background: #edf4ff;
}

.vmp-template-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 550ms cubic-bezier(.22, 1, .36, 1);
}

.vmp-template-card:hover .vmp-template-card-media img {
    transform: scale(1.025);
}

.vmp-template-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    color: #0b55ce;
    border: 1px solid rgba(23, 105, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 8px 22px rgba(19, 62, 124, .12);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vmp-template-card-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 21px 21px;
}

.vmp-template-card-copy span {
    display: block;
    margin-bottom: 5px;
    color: #8793a7;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.vmp-template-card-copy h2 {
    margin: 0 !important;
    color: var(--vmp-v8-ink);
    font-size: 17px !important;
    line-height: 1.3;
    letter-spacing: -.018em;
}

.vmp-template-card-copy > i {
    color: #8a99b0;
    font-size: 12px;
}

.vmp-template-empty {
    max-width: 620px;
    padding: 64px 30px;
    margin: 16px auto 0;
    text-align: center;
    border: 1px dashed rgba(23, 105, 255, .24);
    border-radius: 25px;
    background: rgba(255, 255, 255, .70);
}

.vmp-template-empty > span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 18px;
    color: #fff;
    border-radius: 17px;
    background: linear-gradient(145deg, #277dff, #0757e8);
    box-shadow: 0 15px 30px rgba(23, 105, 255, .22);
}

.vmp-template-empty h2 {
    margin: 0 0 9px;
    color: var(--vmp-v8-ink);
    font-size: 24px;
}

.vmp-template-empty p {
    max-width: 470px;
    margin: 0 auto;
    color: var(--vmp-v8-muted);
    font-size: 13px;
    line-height: 1.7;
}

.vmp-template-empty button {
    padding: 11px 17px;
    margin-top: 21px;
    color: #0754e8;
    border: 1px solid rgba(23, 105, 255, .22);
    border-radius: 11px;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 991px) {
    .vmp-footer-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .vmp-footer-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(150px, .55fr) !important;
    }

    .vmp-footer-contact {
        grid-column: 1 / -1;
    }

    .vmp-footer-contact .vmp-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmp-template-catalogue-v8 .vmp-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .vmp-footer-cta {
        padding: 33px 27px;
        margin-bottom: 45px;
    }

    .vmp-footer-cta-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .vmp-footer-v2 .vmp-footer-button {
        flex: 1 1 180px;
    }

    .vmp-footer-grid {
        grid-template-columns: 1fr !important;
    }

    .vmp-footer-contact {
        grid-column: auto;
    }

    .vmp-footer-contact .vmp-footer-links {
        grid-template-columns: 1fr;
    }

    .vmp-template-search {
        grid-template-columns: 1fr;
    }

    .vmp-template-search-submit {
        width: 100%;
    }

    .vmp-template-results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .vmp-template-results-bar p {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .vmp-footer-v2 {
        padding-bottom: 22px !important;
    }

    .vmp-footer-cta {
        padding: 29px 21px;
        border-radius: 0 0 22px 22px;
    }

    .vmp-footer-brand {
        padding: 23px;
    }

    .vmp-footer-logo-shell .vmp-footer-logo {
        width: 165px !important;
    }

    .vmp-template-catalogue-hero {
        padding-bottom: 48px !important;
    }

    .vmp-template-search {
        padding: 6px;
        border-radius: 15px;
    }

    .vmp-template-search-field input {
        font-size: 12.5px;
    }

    .vmp-template-category-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 2px 2px 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .vmp-template-category-list::-webkit-scrollbar {
        display: none;
    }

    .vmp-template-category-list button {
        flex: 0 0 auto;
    }

    .vmp-template-catalogue-v8 .vmp-template-grid {
        grid-template-columns: 1fr !important;
    }

    .vmp-template-card-media {
        height: min(126vw, 490px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vmp-footer-v2 *,
    .vmp-template-catalogue-v8 * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
