/* ============================================================
   CONINCSTUDIO ARTIST DASHBOARD V2
   STATS / ARTIST METRICS
   ------------------------------------------------------------
   Cinematic Afro-Creative Studio
   Spotify UX × Netflix Atmosphere × Apple Polish
   ============================================================ */

.cs-stats-row {
    position: relative;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    width: 100%;
    margin: 28px 0 34px;
    gap: 14px;

    isolation: isolate;
}

/* ------------------------------------------------------------
   AMBIENT LIGHTING
   ------------------------------------------------------------ */

.cs-stats-row::before {
    content: "";

    position: absolute;
    inset: -40px -20px;

    z-index: -2;

    background:
        radial-gradient(
            circle at 12% 50%,
            rgba(245, 179, 1, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 50%,
            rgba(157, 77, 255, 0.10),
            transparent 34%
        );

    pointer-events: none;
}

/* ------------------------------------------------------------
   STAT CARD
   ------------------------------------------------------------ */

.cs-stat-card {
    position: relative;

    min-height: 112px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 22px 20px;

    overflow: hidden;

    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            rgba(27, 19, 51, 0.96),
            rgba(18, 10, 31, 0.94)
        );

    border: 1px solid rgba(245, 179, 1, 0.13);
    border-radius: 18px;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    color: #ffffff;

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ------------------------------------------------------------
   CARD LIGHTING
   ------------------------------------------------------------ */

.cs-stat-card::before {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    top: -55px;
    right: -35px;

    border-radius: 50%;

    background: rgba(245, 179, 1, 0.11);

    filter: blur(22px);

    opacity: 0.65;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.cs-stat-card::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(245, 179, 1, 0.65),
            rgba(255, 140, 66, 0.45),
            transparent
        );

    opacity: 0;

    transform: scaleX(0.55);

    transition:
        opacity 0.28s ease,
        transform 0.28s ease;
}

/* ------------------------------------------------------------
   VALUE
   ------------------------------------------------------------ */

.cs-stat-card span {
    position: relative;
    z-index: 2;

    display: block;

    margin-bottom: 7px;

    font-family: "Inter", sans-serif;

    font-size: clamp(1.55rem, 2vw, 2.05rem);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.045em;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ffffff 10%,
            #f5b301 75%,
            #ff8c42 100%
        );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ------------------------------------------------------------
   LABEL
   ------------------------------------------------------------ */

.cs-stat-card small {
    position: relative;
    z-index: 2;

    display: block;

    color: #bbbbbb;

    font-family: "Roboto", sans-serif;

    font-size: 0.72rem;
    font-weight: 600;

    line-height: 1.3;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------
   HOVER
   ------------------------------------------------------------ */

.cs-stat-card:hover {
    transform: translateY(-5px);

    border-color: rgba(245, 179, 1, 0.42);

    background:
        linear-gradient(
            145deg,
            rgba(34, 23, 61, 0.98),
            rgba(18, 10, 31, 0.98)
        );

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.38),
        0 0 28px rgba(157, 77, 255, 0.10),
        0 0 18px rgba(245, 179, 1, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cs-stat-card:hover::before {
    transform: scale(1.35);
    opacity: 0.95;
}

.cs-stat-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ------------------------------------------------------------
   TRACK CARD — PRIMARY ACTION
   ------------------------------------------------------------ */

.cs-stat-link {
    cursor: pointer;
}

.cs-stat-link::before {
    background:
        radial-gradient(
            circle,
            rgba(245, 179, 1, 0.22),
            transparent 68%
        );

    filter: blur(18px);
}

.cs-stat-link:hover {
    border-color: rgba(245, 179, 1, 0.58);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.38),
        0 0 30px rgba(245, 179, 1, 0.13);
}

/* ------------------------------------------------------------
   OPTIONAL ACTIVE STATE
   ------------------------------------------------------------ */

.cs-stat-card.is-active {
    border-color: rgba(245, 179, 1, 0.50);

    box-shadow:
        0 0 0 1px rgba(245, 179, 1, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(245, 179, 1, 0.10);
}

.cs-stat-card.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 1200px) {

    .cs-stats-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 680px) {

    .cs-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;

        margin: 22px 0 28px;
    }

    .cs-stat-card {
        min-height: 96px;

        padding: 18px 16px;

        border-radius: 15px;
    }

    .cs-stat-card span {
        font-size: 1.5rem;
    }

    .cs-stat-card small {
        font-size: 0.65rem;
        letter-spacing: 0.09em;
    }

}

/* ------------------------------------------------------------
   SMALL PHONES
   ------------------------------------------------------------ */

@media (max-width: 400px) {

    .cs-stats-row {
        gap: 8px;
    }

    .cs-stat-card {
        min-height: 90px;
        padding: 15px 13px;
    }

    .cs-stat-card span {
        font-size: 1.35rem;
    }

}

/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    .cs-stat-card,
    .cs-stat-card::before,
    .cs-stat-card::after {
        transition: none;
    }

}