﻿/* =========================================
   PartnarsView - Index
   - >900px : Pro cards (logo-first + CTA + spotlight)
   - <=900px: Serial list rows (logo left, name right, no button)
   - Min width: 320px friendly
   ========================================= */

:root {
    --home-bg: #0b0b0f;
    --home-text: rgba(255,255,255,0.92);
    --home-muted: rgba(255,255,255,0.70);
    --home-border: rgba(255,255,255,0.12);
    --home-border2: rgba(255,255,255,0.18);
    --home-red: #ff2a2a;
    --home-radius: 18px;
    --home-shadow2: 0 12px 34px rgba(0,0,0,0.45);
    --home-ease: cubic-bezier(.2,.8,.2,1);
    --home-ease-fast: cubic-bezier(.2,.9,.2,1);
    /* ✅ Icons (SVG masks) */
    --i-count: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v12H4z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M7 10h10' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 14h7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --i-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 5h5v5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 14L19 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M19 14v5H5V5h5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --i-partner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3 1.3 3 3 3Zm-8 0c1.7 0 3-1.3 3-3S9.7 5 8 5 5 6.3 5 8s1.3 3 3 3Zm0 2c-2.7 0-5 1.6-5 3.5V19h10v-2.5C13 14.6 10.7 13 8 13Zm8 0c-.3 0-.6 0-.9.1 1.2.8 1.9 2 1.9 3.4V19h6v-2.5c0-1.9-2.3-3.5-5-3.5Z' fill='%23000'/%3E%3C/svg%3E");
    --i-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16v10H4z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M7 10h10' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 13h7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.pt {
    min-width: 320px;
    color: var(--home-text);
    background: transparent;
    padding: clamp(18px, 3vw, 28px) 0 clamp(46px, 6vw, 74px);
}

.pt__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

@media (max-width:520px) {
    .pt__inner {
        padding-inline: 14px;
    }
}

/* -----------------------------------------
   Hero
----------------------------------------- */
.pt-hero {
    border-radius: var(--home-radius);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow2);
    padding: 18px;
    overflow: hidden;
    position: relative;
}

    .pt-hero::after {
        content: "";
        position: absolute;
        right: -70px;
        top: -70px;
        width: 200px;
        height: 200px;
        background: rgba(255,42,42,0.10);
        filter: blur(36px);
        pointer-events: none;
    }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 220ms var(--home-ease), border-color 220ms var(--home-ease);
    position: relative;
    z-index: 1;
}

    .kicker:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.16);
    }

.kicker__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--home-red);
    box-shadow: 0 0 0 4px rgba(255,42,42,0.14);
}

.kicker__text {
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
}

.pt-hero__title {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4.2vw, 36px);
    letter-spacing: -0.03em;
    line-height: 1.06;
    position: relative;
    z-index: 1;
}

.pt-hero__text {
    margin: 0;
    max-width: 76ch;
    color: var(--home-muted);
    font-size: clamp(13.5px, 1.7vw, 16px);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.pt-metaRow {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast);
}

    .pill:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.18);
    }

.pill__icon {
    --pill-icon: var(--i-count);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,42,42,0.12);
    border: 1px solid rgba(255,42,42,0.38);
    display: inline-grid;
    place-items: center;
}

    .pill__icon::before {
        content: "";
        width: 12px;
        height: 12px;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--pill-icon) center/contain no-repeat;
        mask: var(--pill-icon) center/contain no-repeat;
    }

.pill__icon--count {
    --pill-icon: var(--i-count);
}

.pill__icon--open {
    --pill-icon: var(--i-open);
}

.pill__text {
    font-size: 13px;
    font-weight: 850;
    color: rgba(255,255,255,0.86);
}

/* -----------------------------------------
   Section head
----------------------------------------- */
.pt-section {
    margin-top: 16px;
}

.pt-section__head {
    margin: 14px 0 12px;
}

.pt-section__title {
    margin: 0;
    font-size: clamp(18px, 2.2vw, 22px);
    letter-spacing: -0.01em;
}

/* -----------------------------------------
   Grid Planning (Desktop cards)
----------------------------------------- */
.pt-grid {
    --grid-max: 980px;
    max-width: var(--grid-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* 2 columns */
@media (min-width: 640px) {
    .pt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* 3 columns (lock it — so it never becomes 4) */
@media (min-width: 980px) {
    .pt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

/* -----------------------------------------
   Desktop Cards (logo-first)
----------------------------------------- */
.pt-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--home-border);
    background: rgba(255,255,255,0.04);
    border-radius: var(--home-radius);
    padding: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.30);
    transition: transform 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast), background-color 180ms var(--home-ease-fast), box-shadow 180ms var(--home-ease-fast);
    will-change: transform;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

    /* spotlight (desktop) */
    .pt-card::before {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        border-radius: 999px;
        background: rgba(255,42,42,0.13);
        filter: blur(42px);
        left: var(--px, 50%);
        top: var(--py, 35%);
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 180ms var(--home-ease-fast);
        pointer-events: none;
    }

    .pt-card:hover {
        transform: translateY(-3px);
        border-color: var(--home-border2);
        background: rgba(255,255,255,0.05);
        box-shadow: 0 22px 60px rgba(0,0,0,0.45);
    }

        .pt-card:hover::before {
            opacity: 1;
        }

    .pt-card:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(255,42,42,0.18), 0 22px 60px rgba(0,0,0,0.45);
    }

.pt-card__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-top: 10px;
}

.pt-card__logo {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(0,0,0,0.45), 0 0 0 4px rgba(255,42,42,0.06);
    transition: transform 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast), box-shadow 180ms var(--home-ease-fast);
}

    /* ✅ logo fully visible */
    .pt-card__logo img {
        width: 84%;
        height: 84%;
        object-fit: contain;
        display: block;
        filter: contrast(1.05) saturate(1.02);
    }

.pt-card:hover .pt-card__logo {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(255,42,42,0.40);
    box-shadow: 0 20px 40px rgba(0,0,0,0.55), 0 0 0 4px rgba(255,42,42,0.12);
}

.pt-card__logoFallback {
    width: 34px;
    height: 34px;
    display: block;
}

    .pt-card__logoFallback::before {
        content: "";
        width: 34px;
        height: 34px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-partner) center/contain no-repeat;
        mask: var(--i-partner) center/contain no-repeat;
    }

.pt-card__logo.is-fallback {
    background: rgba(255,42,42,0.10);
    border-color: rgba(255,42,42,0.30);
}

.pt-logoText {
    font-weight: 950;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.92);
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
}

.pt-card__name {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.01em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pt-card__body {
    margin-top: 10px;
    flex: 1 1 auto;
}

.pt-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.pt-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,42,42,0.10);
    border: 1px solid rgba(255,42,42,0.28);
    color: rgba(255,255,255,0.90);
    font-weight: 900;
    font-size: 13px;
    transition: transform 160ms var(--home-ease-fast), border-color 160ms var(--home-ease-fast), background-color 160ms var(--home-ease-fast);
}

.pt-link__icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    transition: transform 160ms var(--home-ease-fast);
}

    .pt-link__icon::before {
        content: "";
        width: 16px;
        height: 16px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-arrow) center/contain no-repeat;
        mask: var(--i-arrow) center/contain no-repeat;
    }

.pt-card:hover .pt-link {
    transform: translateY(-1px);
    border-color: rgba(255,42,42,0.40);
    background: rgba(255,42,42,0.13);
}

.pt-card:hover .pt-link__icon {
    transform: translateX(3px);
}

/* -----------------------------------------
   Empty state
----------------------------------------- */
.pt-empty {
    grid-column: 1 / -1;
}

.pt-emptyCard {
    border: 1px dashed rgba(255,255,255,0.18);
    border-radius: var(--home-radius);
    background: rgba(255,255,255,0.03);
    padding: 18px;
    text-align: center;
}

.pt-emptyIcon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: rgba(255,42,42,0.10);
    border: 1px solid rgba(255,42,42,0.30);
    display: grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

    .pt-emptyIcon::before {
        content: "";
        width: 22px;
        height: 22px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-empty) center/contain no-repeat;
        mask: var(--i-empty) center/contain no-repeat;
    }

.pt-emptyTitle {
    font-weight: 950;
    letter-spacing: .2px;
    margin-bottom: 6px;
}

.pt-emptySub {
    color: var(--home-muted);
    font-size: 13px;
}

/* -----------------------------------------
   Reveal
----------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 520ms var(--home-ease), transform 520ms var(--home-ease);
}

    .reveal.is-in {
        opacity: 1;
        transform: translateY(0);
    }

/* =========================================
   ✅ <=900px: Serial List Mode (NO cards + NO button)
   - logo left, name right
   - separator + hover accent
   - still clickable whole row
   ========================================= */
@media (max-width: 900px) {

    /* Grid becomes a vertical list */
    .pt-grid {
        max-width: 820px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 2px;
    }

    /* Row style (not a “card”) */
    .pt-card {
        flex-direction: row;
        align-items: center;
        min-height: 0;
        padding: 12px 12px;
        border-radius: 14px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.10);
        box-shadow: none;
        transform: none;
    }

        /* Disable spotlight vibe in list mode */
        .pt-card::before {
            display: none;
        }

        /* Right chevron hint (not a button) */
        .pt-card::after {
            content: "";
            position: absolute;
            right: 12px;
            top: 50%;
            width: 16px;
            height: 16px;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.82);
            -webkit-mask: var(--i-arrow) center/contain no-repeat;
            mask: var(--i-arrow) center/contain no-repeat;
            opacity: 0.65;
            transition: transform 160ms var(--home-ease-fast), opacity 160ms var(--home-ease-fast);
            pointer-events: none;
        }

        .pt-card:hover {
            background: rgba(255,255,255,0.05);
            border-color: rgba(255,42,42,0.28);
        }

            .pt-card:hover::after {
                transform: translateY(-50%) translateX(2px);
                opacity: 0.9;
            }

    /* Make top area a row */
    .pt-card__top {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding-top: 0;
        text-align: left;
    }

    /* Logo small + sharp */
    .pt-card__logo {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        box-shadow: 0 10px 22px rgba(0,0,0,0.35);
    }

        .pt-card__logo img {
            width: 82%;
            height: 82%;
            object-fit: contain;
        }

    /* Name becomes the hero */
    .pt-card__meta {
        min-width: 0;
        flex: 1;
    }

    .pt-card__name {
        font-size: 16px;
        line-height: 1.2;
        padding-right: 24px; /* leave room for chevron */
    }

    /* Remove body/footer completely in list mode */
    .pt-card__body,
    .pt-card__footer {
        display: none !important;
    }
}

/* ✅ Under 400px: list rows look tighter */
@media (max-width: 399px) {
    .pt__inner {
        padding-inline: 12px;
    }

    .pt-grid {
        gap: 9px;
    }

    .pt-card {
        padding: 11px 11px;
    }

    .pt-card__logo {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }

    .pt-card__name {
        font-size: 15.5px;
    }
}

/* ✅ Extra tiny baseline 320px */
@media (max-width: 340px) {
    .pt__inner {
        padding-inline: 10px;
    }

    .pt-card {
        padding: 10px 10px;
        border-radius: 13px;
    }

    .pt-card__logo {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .pt-card__name {
        font-size: 15px;
    }
}

/* -----------------------------------------
   Reduced motion
----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .pt-card,
    .pill,
    .kicker,
    .pt-link__icon,
    .reveal {
        transition: none !important;
        animation: none !important;
    }
}
