/* ============================================================
 *  FRN Profiles — Character/Dinosaur cards with inline expand
 *  ============================================================ */

.frn-profiles {
    padding: 80px 5vw;
    position: relative;
    background:
        linear-gradient(180deg, #0a0a0a 0%, #141416 100%);
    color: #f4f1ea;
}
.frn-profiles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* CARD */
.frn-profile-card {
    background: linear-gradient(180deg, #1a0606 0%, #0a0a0a 100%);
    border: 1px solid rgba(217, 13, 30, 0.25);
    border-radius: 6px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    position: relative;
}
.frn-profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 13, 30, 0.6);
    box-shadow: 0 12px 40px rgba(217, 13, 30, 0.2);
}

/* When expanded, span full width and stretch vertically */
.frn-profile-card.is-expanded {
    grid-column: 1 / -1;
    transform: none;
    border-color: #d90d1e;
    box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 2px rgba(217,13,30,.3);
}

/* TRIGGER (the card button) */
.frn-profile-card__trigger {
    all: unset;
    display: block;
    width: 100%;
    cursor: pointer;
    text-align: left;
    color: inherit;
    box-sizing: border-box;
}
.frn-profile-card__trigger:focus-visible {
    outline: 2px solid #d90d1e;
    outline-offset: 2px;
}

.frn-profile-card__imgwrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #050505;
    overflow: hidden;
}
.frn-profile-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.frn-profile-card:hover .frn-profile-card__img {
    transform: scale(1.04);
}
.frn-profile-card__placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 96px;
    opacity: 0.25;
    color: #d90d1e;
}

.frn-profile-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 2;
}
.frn-profile-card__badge--featured {
    background: #d90d1e;
    color: #f4f1ea;
}
.frn-profile-card__badge--free {
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(244, 241, 234, 0.4);
    color: #f4f1ea;
    top: auto;
    bottom: 12px;
    left: 12px;
}

.frn-profile-card__head {
    padding: 18px 20px 20px;
}
.frn-profile-card__name {
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
    margin: 0 0 6px;
    color: #f4f1ea;
    line-height: 1.05;
}
.frn-profile-card__tagline {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #ff3344;
    margin: 0 0 12px;
    text-transform: uppercase;
}
.frn-profile-card__more {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #d90d1e;
    border-bottom: 1px solid rgba(217,13,30,0.5);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}
.frn-profile-card:hover .frn-profile-card__more {
    color: #ff3344;
    border-color: #ff3344;
}
.frn-profile-card.is-expanded .frn-profile-card__more {
    display: none;
}

/* EXPANDED CONTENT */
.frn-profile-card__expand {
    padding: 0 24px 28px;
    border-top: 1px solid rgba(217, 13, 30, 0.2);
    margin-top: 4px;
    animation: frnProfileExpandIn .4s ease both;
}
@keyframes frnProfileExpandIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.frn-profile-card.is-expanded .frn-profile-card__expand[hidden] {
    display: block;
}
.frn-profile-card__body {
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #ebe6d9;
    padding: 20px 0;
}
.frn-profile-card__body p {
    margin: 0 0 1em;
}

.frn-profile-card__section {
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.frn-profile-card__section h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 3px;
    margin: 0 0 12px;
    color: #d90d1e;
    text-transform: uppercase;
}
.frn-profile-card__section > div {
    font-size: 15px;
    line-height: 1.7;
    color: #ebe6d9;
}
.frn-profile-card__section > div p { margin: 0 0 1em; }

/* STATS table */
.frn-profile-card__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.frn-profile-card__stats dt {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a07070;
    padding: 12px 0 4px;
}
.frn-profile-card__stats dd {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1.5px;
    color: #f4f1ea;
    margin: 0 0 12px;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 12px;
}

.frn-profile-card__close {
    display: block;
    margin: 24px auto 0;
    background: transparent;
    border: 1px solid #d90d1e;
    color: #d90d1e;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    text-transform: uppercase;
}
.frn-profile-card__close:hover {
    background: #d90d1e;
    color: #f4f1ea;
}

/* MOBILE */
@media (max-width: 640px) {
    .frn-profiles { padding: 50px 5vw; }
    .frn-profiles__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 24px;
    }
    .frn-profile-card.is-expanded {
        grid-column: 1 / -1;
    }
    .frn-profile-card__name { font-size: 22px; }
    .frn-profile-card__body { font-size: 15px; padding: 16px 0; }
    .frn-profile-card__section h4 { font-size: 18px; }
    .frn-profile-card__stats {
        grid-template-columns: 1fr 1fr;
    }
    .frn-profile-card__expand {
        padding: 0 18px 22px;
    }
}
