/* ==========================================================
   DM STUDIO AI — STUDENTS & TEACHERS PREMIUM V3
   File: assets/css/student-teacher-premium.css
   ==========================================================

   RESPONSIBILITIES
   - Premium student and teacher cards
   - Compact, high-quality illustration presentation
   - Modern feature badges and action buttons
   - Responsive desktop, tablet and mobile layouts
   - Accessible focus states and reduced motion

   NOTES
   - Uses the existing pages/home.php markup.
   - Does not change PHP routing or authentication.
   - All selectors are scoped to this section.
   ========================================================== */


/* ==========================================================
   1. MAIN SECTION
   ========================================================== */

.user-paths.user-paths-premium {
    width: min(1240px, calc(100% - 32px));
    max-width: 1240px;
    margin: 76px auto;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================================
   2. SECTION HEADING
   ========================================================== */

.user-paths-premium .section-heading {
    max-width: 820px;
    margin: 0 auto 36px;
    text-align: center;
}

.user-paths-premium .section-kicker {
    margin: 0;

    color: #6257eb;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.user-paths-premium .section-heading h2 {
    margin: 12px 0 14px;

    color: #11183e;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.user-paths-premium .user-paths-gradient {
    background: linear-gradient(
        110deg,
        #8745f5 0%,
        #5a58fa 48%,
        #287cff 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

.user-paths-premium .user-paths-intro {
    max-width: 650px;
    margin: 0 auto;

    color: #667194;
    font-size: 0.98rem;
    line-height: 1.7;
}


/* ==========================================================
   3. TWO-COLUMN GRID
   ========================================================== */

.user-paths-premium .user-paths-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}


/* ==========================================================
   4. PREMIUM CARDS
   ========================================================== */

.user-paths-premium .user-path-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    margin: 0;
    padding: 16px;

    overflow: hidden;

    border: 1px solid rgba(142, 132, 245, 0.19);
    border-radius: 30px;

    background: linear-gradient(
        155deg,
        #ffffff 0%,
        #faf8ff 55%,
        #f2efff 100%
    );

    box-shadow:
        0 18px 48px rgba(67, 65, 144, 0.09),
        0 2px 8px rgba(67, 65, 144, 0.025);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.user-paths-premium .user-path-card:hover {
    transform: translateY(-5px);

    border-color: rgba(123, 100, 245, 0.35);

    box-shadow:
        0 26px 58px rgba(67, 65, 144, 0.15);
}

.user-paths-premium .user-path-teacher {
    background: linear-gradient(
        155deg,
        #ffffff 0%,
        #f7fbff 55%,
        #edf5ff 100%
    );
}

.user-paths-premium .user-path-teacher:hover {
    border-color: rgba(63, 139, 245, 0.35);
}


/* ==========================================================
   5. COMPACT ILLUSTRATIONS
   ========================================================== */

.user-paths-premium .user-path-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 238px;
    min-height: 0;

    padding: 16px;
    box-sizing: border-box;

    overflow: hidden;

    border: 1px solid rgba(149, 126, 244, 0.10);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 78% 22%,
            rgba(255, 255, 255, 0.95),
            transparent 46%
        ),
        linear-gradient(
            135deg,
            #ebe3ff 0%,
            #f7f2ff 55%,
            #e6edff 100%
        );
}

.user-paths-premium .user-path-teacher .user-path-visual {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.95),
            transparent 46%
        ),
        linear-gradient(
            135deg,
            #e2f2ff 0%,
            #f5faff 55%,
            #e9e8ff 100%
        );
}

/*
   Keep the illustration smaller than its container.
   Avoid enlarging the original image to full card width.
*/

.user-paths-premium .user-path-image {
    display: block;

    width: auto;
    max-width: 100%;

    height: 205px;
    max-height: 100%;

    aspect-ratio: auto;
    object-fit: contain;

    border-radius: 17px;

    box-shadow:
        0 12px 28px rgba(81, 75, 158, 0.10);

    transition: transform 0.3s ease;
}

.user-paths-premium .user-path-card:hover .user-path-image {
    transform: scale(1.025);
}


/* ==========================================================
   6. CARD BODY
   ========================================================== */

.user-paths-premium .user-path-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding: 24px 15px 14px;
}


/* ==========================================================
   7. EYEBROW LABEL
   ========================================================== */

.user-paths-premium .user-path-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 12px;

    color: #7252e9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.user-paths-premium .user-path-eyebrow > span {
    color: #9168ff;
    font-size: 1rem;
}

.user-paths-premium .user-path-teacher .user-path-eyebrow {
    color: #3079e8;
}


/* ==========================================================
   8. CARD TYPOGRAPHY
   ========================================================== */

.user-paths-premium .user-path-body h3 {
    margin: 0 0 12px;

    color: #151a46;
    font-size: clamp(1.6rem, 2.3vw, 2.1rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.user-paths-premium .user-path-body p {
    max-width: 490px;
    margin: 0 0 22px;

    color: #626e92;
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.75;
}


/* ==========================================================
   9. FEATURE BADGES
   ========================================================== */

.user-paths-premium .user-path-features {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 9px;

    width: 100%;
    margin: 0 0 26px;
}

.user-paths-premium .user-path-features > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 9px 13px;

    border: 1px solid rgba(143, 120, 245, 0.18);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.88);

    color: #46467e;
    font-size: 0.77rem;
    font-weight: 750;
    line-height: 1.35;

    box-shadow: 0 5px 14px rgba(80, 74, 155, 0.045);
}

.user-paths-premium
.user-path-teacher
.user-path-features > span {
    border-color: rgba(71, 145, 245, 0.18);

    color: #365d91;
}


/* ==========================================================
   10. PREMIUM LOGIN / DASHBOARD BUTTONS
   ========================================================== */

.user-paths.user-paths-premium
.user-path-card
a.user-path-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    width: auto;
    max-width: 100%;
    min-height: 48px;

    margin: auto 0 0;
    padding: 13px 23px;

    box-sizing: border-box;

    border: 1px solid transparent;
    border-radius: 14px;

    background: linear-gradient(
        110deg,
        #8542f5 0%,
        #5b5cf8 100%
    );

    color: #ffffff;
    -webkit-text-fill-color: #ffffff;

    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;

    box-shadow:
        0 10px 22px rgba(111, 78, 231, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

/* Teacher colour */

.user-paths.user-paths-premium
.user-path-teacher
a.user-path-action {
    background: linear-gradient(
        110deg,
        #3978f5 0%,
        #24a7ef 100%
    );

    box-shadow:
        0 10px 22px rgba(54, 139, 236, 0.20);
}

/* Preserve white text in every link state */

.user-paths.user-paths-premium
.user-path-card
a.user-path-action:visited,
.user-paths.user-paths-premium
.user-path-card
a.user-path-action:hover,
.user-paths.user-paths-premium
.user-path-card
a.user-path-action:focus-visible {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-decoration: none;
}

/* Hover */

.user-paths.user-paths-premium
.user-path-card
a.user-path-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);

    box-shadow:
        0 15px 28px rgba(93, 78, 221, 0.25);
}

/* Keyboard accessibility */

.user-paths.user-paths-premium
.user-path-card
a.user-path-action:focus-visible {
    outline: 3px solid #f5bd4f;
    outline-offset: 4px;
}

/* Arrow */

.user-paths-premium
.user-path-action > span {
    font-size: 1.15rem;
    line-height: 1;
}


/* ==========================================================
   11. TABLET
   ========================================================== */

@media (max-width: 900px) {

    .user-paths.user-paths-premium {
        margin: 60px auto;
    }

    .user-paths-premium .user-paths-grid {
        gap: 16px;
    }

    .user-paths-premium .user-path-card {
        padding: 12px;
        border-radius: 25px;
    }

    .user-paths-premium .user-path-visual {
        height: 205px;
        padding: 12px;
        border-radius: 19px;
    }

    .user-paths-premium .user-path-image {
        height: 180px;
    }

    .user-paths-premium .user-path-body {
        padding: 21px 10px 12px;
    }

    .user-paths-premium .user-path-features {
        gap: 7px;
    }

    .user-paths-premium .user-path-features > span {
        padding: 8px 10px;
        font-size: 0.72rem;
    }
}


/* ==========================================================
   12. MOBILE
   ========================================================== */

@media (max-width: 680px) {

    .user-paths.user-paths-premium {
        width: calc(100% - 24px);
        margin: 48px auto;
    }

    .user-paths-premium .section-heading {
        margin-bottom: 28px;
    }

    .user-paths-premium .section-heading h2 {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }

    .user-paths-premium .user-paths-intro {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .user-paths-premium .user-paths-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .user-paths-premium .user-path-card {
        padding: 12px;
        border-radius: 24px;
    }

    .user-paths-premium .user-path-visual {
        height: 190px;
        padding: 12px;
        border-radius: 19px;
    }

    .user-paths-premium .user-path-image {
        height: 165px;
        max-width: 100%;
        border-radius: 15px;
    }

    .user-paths-premium .user-path-body {
        padding: 20px 10px 12px;
    }

    .user-paths-premium .user-path-eyebrow {
        font-size: 0.68rem;
    }

    .user-paths-premium .user-path-body h3 {
        font-size: 1.65rem;
    }

    .user-paths-premium .user-path-body p {
        margin-bottom: 20px;
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .user-paths-premium .user-path-features {
        gap: 7px;
        margin-bottom: 22px;
    }

    .user-paths-premium .user-path-features > span {
        padding: 8px 10px;
        font-size: 0.71rem;
    }

    .user-paths.user-paths-premium
    .user-path-card
    a.user-path-action {
        width: 100%;
        min-height: 48px;
    }
}


/* ==========================================================
   13. SMALL MOBILE
   ========================================================== */

@media (max-width: 380px) {

    .user-paths-premium .user-path-card {
        padding: 10px;
    }

    .user-paths-premium .user-path-visual {
        height: 170px;
        padding: 9px;
    }

    .user-paths-premium .user-path-image {
        height: 150px;
    }

    .user-paths-premium .user-path-body {
        padding: 18px 8px 10px;
    }

    .user-paths-premium .user-path-body h3 {
        font-size: 1.5rem;
    }
}


/* ==========================================================
   14. ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .user-paths-premium .user-path-card,
    .user-paths-premium .user-path-image,
    .user-paths-premium .user-path-action {
        transition: none;
    }

    .user-paths-premium .user-path-card:hover,
    .user-paths-premium .user-path-card:hover .user-path-image,
    .user-paths-premium .user-path-action:hover {
        transform: none;
    }
}
