/* /assets/css/collections.css */

.collections-template{
    background:#050816;
}

.collections-template main{
    overflow:hidden;
}

/* HERO */

.collection-hero{
    padding:70px 0 60px;
}

.collection-hero__inner{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1.1fr) 340px;
    gap:40px;
    align-items:center;
    padding:54px;
    border-radius:36px;
    overflow:hidden;
    background:
        radial-gradient(circle at top left,rgba(99,102,241,.24),transparent 36%),
        radial-gradient(circle at top right,rgba(59,130,246,.18),transparent 34%),
        linear-gradient(180deg,#0b1120,#050816);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 30px 120px rgba(0,0,0,.34);
}

.collection-hero__inner:before{
    content:"";
    position:absolute;
    inset:auto -10% -30%;
    height:220px;
    background:radial-gradient(circle,rgba(99,102,241,.26),transparent 70%);
    pointer-events:none;
}

.collection-hero h1{
    margin:18px 0;
    max-width:900px;
    color:#fff;
    font-size:clamp(54px,7vw,92px);
    line-height:.92;
    letter-spacing:-.07em;
}

.collection-hero p{
    max-width:820px;
    color:#cbd5e1;
    font-size:22px;
    line-height:1.7;
}

.section-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    border-radius:999px;
    background:rgba(99,102,241,.10);
    border:1px solid rgba(99,102,241,.24);
    color:#c4b5fd;
    font-size:14px;
    font-weight:800;
}

/* ACTIONS */

.collection-actions{
    display:flex;
    align-items:center;
    gap:18px;
    margin-top:32px;
    flex-wrap:wrap;
}

.collection-actions .btn{
    min-height:56px;
    padding:0 28px;
    border-radius:18px;
    font-size:17px;
    font-weight:800;
}

.collection-actions .btn-primary{
    background:linear-gradient(135deg,#6366f1,#8b5cf6);
    border:none;
    color:#fff;
    box-shadow:0 18px 50px rgba(99,102,241,.35);
}

.collection-actions .btn-ghost{
    color:#fff;
    background:transparent;
    border:1px solid rgba(255,255,255,.12);
}

/* PANEL */

.collection-hero__panel{
    position:relative;
    z-index:2;
    padding:34px;
    border-radius:28px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(16px);
}

.collection-hero__panel strong{
    display:block;
    color:#fff;
    font-size:52px;
    line-height:1;
    letter-spacing:-.05em;
}

.collection-hero__panel span{
    display:block;
    margin-top:10px;
    color:#94a3b8;
    font-size:15px;
    font-weight:700;
}

/* HEAD */

.collections-shell{
    padding-bottom:80px;
}

.collection-tools-head{
    margin-bottom:34px;
}

.collection-tools-head h2{
    margin:14px 0 10px;
    color:#fff;
    font-size:clamp(48px,6vw,84px);
    line-height:.94;
    letter-spacing:-.07em;
}

.collection-tools-head p{
    color:#94a3b8;
    font-size:20px;
}

/* GRID */

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

/* CARD */

.collection-card{
    position:relative;
    min-height:360px;
    overflow:hidden;
    border-radius:34px;
    background:
        radial-gradient(circle at top left,rgba(99,102,241,.20),transparent 40%),
        linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.08);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.collection-card:hover{
    transform:translateY(-8px);
    border-color:rgba(99,102,241,.30);
    box-shadow:0 28px 90px rgba(0,0,0,.38);
}

.collection-card a{
    display:flex;
    flex-direction:column;
    height:100%;
    padding:30px;
    text-decoration:none;
    color:inherit;
}

.collection-card__icon{
    width:74px;
    height:74px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:22px;
    margin-bottom:28px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#8b5cf6;
    font-size:30px;
    box-shadow:0 16px 44px rgba(0,0,0,.22);
}

.collection-card h3{
    margin:0 0 18px;
    color:#fff;
    font-size:clamp(28px,2.5vw,42px);
    line-height:1;
    letter-spacing:-.055em;
}

.collection-card p{
    color:#cbd5e1;
    font-size:18px;
    line-height:1.7;
    margin-bottom:28px;
}

.collection-card__count{
    margin-top:auto;
    width:max-content;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:11px 18px;
    border-radius:999px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-weight:800;
}

.collection-card__count:before{
    content:"✦";
    color:#8b5cf6;
}

/* RESPONSIVE */

@media(max-width:1180px){

    .collection-hero__inner{
        grid-template-columns:1fr;
    }

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

@media(max-width:760px){

    .collection-hero{
        padding-top:40px;
    }

    .collection-hero__inner{
        padding:28px;
        border-radius:28px;
    }

    .collection-hero h1{
        font-size:54px;
    }

    .collection-hero p{
        font-size:18px;
    }

    .collections-grid{
        grid-template-columns:1fr;
    }

    .collection-card{
        min-height:360px;
    }

    .collection-card h3{
        font-size:38px;
    }

    .collection-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .collection-actions .btn{
        width:100%;
        justify-content:center;
    }
}
/* =========================================================
   V204 — Collection detail cleanup
   - hide raw FontAwesome class names from UI
   - premium related collection pills
   - compact tool cards inside collection pages
   ========================================================= */

.collection-hero__panel{
    display:grid;
    gap:18px;
}

.collection-stat-card{
    padding:22px 24px;
    border-radius:22px;
    background:rgba(15,23,42,.44);
    border:1px solid rgba(255,255,255,.08);
}

.collection-stat-card strong{
    font-size:48px;
}

.collection-stat-card--inline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.collection-stat-card--inline strong{
    flex:0 0 auto;
    font-size:28px;
    letter-spacing:-.03em;
}

.collection-stat-card--inline span{
    margin:0;
    text-align:right;
    color:#cbd5e1;
}

.collection-detail-shell{
    padding:18px 0 90px;
}

.collection-layout{
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:34px;
    align-items:start;
}

.collection-sidebar{
    position:sticky;
    top:110px;
    padding:24px;
    border-radius:28px;
    background:rgba(15,23,42,.56);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 24px 70px rgba(0,0,0,.24);
}

.collection-sidebar h3{
    margin:0 0 18px;
    color:#fff;
    font-size:20px;
    letter-spacing:-.02em;
}

.collection-sidebar__empty{
    color:#94a3b8;
    line-height:1.6;
    margin:0;
}

.collection-related-pills{
    display:grid;
    gap:10px;
}

.collection-related-pill{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:13px 14px;
    border-radius:18px;
    color:#e5e7eb;
    text-decoration:none;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.075);
    transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.collection-related-pill:hover{
    transform:translateY(-2px);
    background:rgba(99,102,241,.10);
    border-color:rgba(129,140,248,.28);
    text-decoration:none;
}

.collection-related-pill__icon{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:rgba(96,165,250,.12);
    color:#93c5fd;
    font-weight:900;
}

.collection-related-pill__name{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:800;
}

.collection-related-pill__count{
    min-width:34px;
    padding:5px 9px;
    border-radius:999px;
    text-align:center;
    color:#c4b5fd;
    background:rgba(139,92,246,.12);
    border:1px solid rgba(139,92,246,.20);
    font-weight:900;
    font-size:13px;
}

.collection-tool-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.collection-tool-grid .la-tool-card{
    min-height:auto;
    border-radius:24px;
}

.collection-tool-grid .la-tool-card__inner{
    min-height:auto;
    padding:20px;
}

.collection-tool-grid .la-tool-card__desc{
    min-height:0;
}

.collection-tool-grid .la-tool-card__actions{
    margin-top:20px;
}

.collection-empty{
    padding:58px 28px;
    border-radius:28px;
    text-align:center;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.collection-empty h2,
.collection-empty h1{
    margin:0 0 12px;
    color:#fff;
}

.collection-empty p{
    margin:0 0 22px;
    color:#94a3b8;
}

@media(max-width:1100px){
    .collection-layout{
        grid-template-columns:1fr;
    }
    .collection-sidebar{
        position:relative;
        top:auto;
    }
    .collection-related-pills{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:760px){
    .collection-tool-grid,
    .collection-related-pills{
        grid-template-columns:1fr;
    }
    .collection-stat-card--inline{
        align-items:flex-start;
        flex-direction:column;
    }
    .collection-stat-card--inline span{
        text-align:left;
    }
}
