/* =========================================================
   FUTUREVERSE — RECOMMENDED COURSES
   Premium Amazon-Inspired Course Listing
   ========================================================= */


/* =========================
   ROOT
   ========================= */

:root {
    --navy: #131921;
    --navy-soft: #172333;
    --navy-light: #243447;

    --orange: #ff9900;
    --orange-dark: #e88900;
    --orange-soft: #fff3df;

    --white: #ffffff;
    --surface: #f7f8fa;
    --surface-2: #eef1f4;

    --text: #172033;
    --text-soft: #5d6675;
    --text-muted: #7b8492;

    --border: #e1e5ea;

    --success: #198754;

    --shadow-sm:
        0 4px 14px rgba(19, 25, 33, 0.06);

    --shadow-md:
        0 12px 32px rgba(19, 25, 33, 0.10);

    --shadow-lg:
        0 20px 50px rgba(19, 25, 33, 0.14);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}


/* =========================
   RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    background: var(--surface);
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* =========================
   TOP NAVIGATION
   ========================= */

.top-nav {
    width: 100%;
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background:
        linear-gradient(
            135deg,
            var(--navy) 0%,
            #172231 55%,
            #1d2c3d 100%
        );

    border-bottom: 1px solid rgba(255,255,255,0.08);

    position: sticky;
    top: 0;
    z-index: 100;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.12);
}


/* =========================
   BRAND
   ========================= */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--white);
}


.brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--orange),
            #ffb43a
        );

    color: var(--navy);

    font-size: 14px;
    font-weight: 900;

    letter-spacing: -0.5px;

    box-shadow:
        0 5px 16px rgba(255,153,0,0.22);
}


.brand-name {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.4px;
}


/* =========================
   BACK BUTTON
   ========================= */

.back-btn {
    border: 1px solid rgba(255,255,255,0.20);

    background: rgba(255,255,255,0.07);

    color: var(--white);

    padding: 10px 17px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.back-btn:hover {
    background: rgba(255,153,0,0.16);
    border-color: rgba(255,153,0,0.55);

    transform: translateY(-1px);
}


/* =========================
   MAIN PAGE
   ========================= */

.courses-page {
    width: min(1320px, 92%);
    margin: 0 auto;

    padding-bottom: 70px;
}


/* =========================
   HERO
   ========================= */

.courses-hero {
    position: relative;

    margin-top: 34px;

    min-height: 260px;

    display: flex;
    align-items: center;

    padding: 46px 52px;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            115deg,
            #131921 0%,
            #1b2938 52%,
            #25394c 100%
        );

    box-shadow: var(--shadow-lg);
}


/* Orange glow */

.courses-hero::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    right: -100px;
    top: -160px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,153,0,0.28),
            transparent 68%
        );
}


/* Soft light */

.courses-hero::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: 40%;
    bottom: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,0.08),
            transparent 70%
        );
}


.hero-content {
    position: relative;
    z-index: 2;

    max-width: 700px;
}


.hero-label,
.section-label {
    display: inline-block;

    color: var(--orange);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.7px;

    margin-bottom: 12px;
}


.hero-content h1 {
    color: var(--white);

    font-size: clamp(32px, 4vw, 52px);

    line-height: 1.08;

    letter-spacing: -1.7px;

    margin-bottom: 16px;
}


.hero-content p {
    max-width: 620px;

    color: rgba(255,255,255,0.72);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================
   COURSE SECTION
   ========================= */

.course-section {
    padding-top: 54px;
}


.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}


.section-heading h2 {
    font-size: clamp(25px, 3vw, 34px);

    line-height: 1.2;

    letter-spacing: -0.8px;
}


.course-count {
    padding: 8px 13px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--white);

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 650;

    box-shadow: var(--shadow-sm);
}


/* =========================
   COURSE GRID
   ========================= */

.course-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/* =========================
   COURSE CARD
   ========================= */

.course-card {
    position: relative;

    display: flex;
    gap: 22px;

    min-height: 315px;

    padding: 26px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}


.course-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            var(--orange),
            #ffb52d
        );

    opacity: 0;

    transition: opacity 0.25s ease;
}


.course-card:hover {
    transform: translateY(-7px);

    border-color: rgba(255,153,0,0.35);

    box-shadow: var(--shadow-lg);
}


.course-card:hover::before {
    opacity: 1;
}


/* =========================
   COURSE ICON
   ========================= */

.course-icon {
    flex: 0 0 82px;

    width: 82px;
    height: 82px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    font-weight: 900;

    font-size: 22px;

    color: var(--white);

    box-shadow:
        0 10px 24px rgba(19,25,33,0.14);

    transition:
        transform 0.25s ease;
}


.course-card:hover .course-icon {
    transform: scale(1.05);
}


.web-icon {
    background:
        linear-gradient(
            135deg,
            #1e4f9b,
            #2c79d0
        );

    font-family: monospace;
}


.python-icon {
    background:
        linear-gradient(
            135deg,
            #176f9f,
            #f0b429
        );

    font-size: 24px;
}


.data-icon {
    background:
        linear-gradient(
            135deg,
            #483c96,
            #7164ca
        );
}


.uiux-icon {
    background:
        linear-gradient(
            135deg,
            #b74468,
            #e8738f
        );
}


/* =========================
   CARD CONTENT
   ========================= */

.course-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.course-category {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.3px;

    margin-bottom: 8px;
}


.course-content h3 {
    color: var(--text);

    font-size: 22px;

    line-height: 1.25;

    letter-spacing: -0.5px;

    margin-bottom: 9px;
}


.course-content p {
    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.65;

    margin-bottom: 16px;
}


/* =========================
   META
   ========================= */

.course-meta {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 700;
}


.course-meta span:first-child {
    color: #d78300;
}


.course-meta span:last-child {
    color: var(--text-muted);

    padding-left: 14px;

    border-left: 1px solid var(--border);
}


/* =========================
   COURSE INFO
   ========================= */

.course-info {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    color: var(--text-muted);

    font-size: 12px;

    margin-bottom: 19px;
}


/* =========================
   COURSE BUTTON
   ========================= */

.course-btn {
    width: 100%;

    margin-top: auto;

    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid #d88a00;

    border-radius: 8px;

    background:
        linear-gradient(
            180deg,
            #ffb52a 0%,
            var(--orange) 100%
        );

    color: #131921;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(255,153,0,0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.course-btn span {
    font-size: 18px;

    transition:
        transform 0.2s ease;
}


.course-btn:hover {
    background:
        linear-gradient(
            180deg,
            #ffc04d 0%,
            #f39a00 100%
        );

    box-shadow:
        0 7px 16px rgba(255,153,0,0.25);

    transform: translateY(-1px);
}


.course-btn:hover span {
    transform: translateX(4px);
}


.course-btn:active {
    transform: translateY(1px);

    box-shadow:
        0 3px 8px rgba(255,153,0,0.18);
}


/* =========================
   FOOTER
   ========================= */

.page-footer {
    width: min(1320px, 92%);

    margin: 0 auto;

    padding: 22px 0 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 12px;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

    .courses-page {
        width: min(94%, 700px);
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        min-height: 285px;
    }

    .courses-hero {
        padding: 40px;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .top-nav {
        min-height: 64px;

        padding: 0 18px;
    }


    .brand-mark {
        width: 34px;
        height: 34px;

        border-radius: 9px;

        font-size: 12px;
    }


    .brand-name {
        font-size: 17px;
    }


    .back-btn {
        padding: 8px 12px;

        font-size: 12px;
    }


    .courses-page {
        width: calc(100% - 28px);

        padding-bottom: 45px;
    }


    .courses-hero {
        margin-top: 18px;

        min-height: 250px;

        padding: 30px 24px;

        border-radius: 18px;
    }


    .hero-content h1 {
        font-size: 32px;

        letter-spacing: -1px;
    }


    .hero-content p {
        font-size: 14px;

        line-height: 1.65;
    }


    .course-section {
        padding-top: 38px;
    }


    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;

        margin-bottom: 20px;
    }


    .section-heading h2 {
        font-size: 26px;
    }


    .course-count {
        font-size: 12px;
    }


    .course-grid {
        gap: 17px;
    }


    .course-card {
        flex-direction: column;

        gap: 17px;

        min-height: auto;

        padding: 20px;

        border-radius: 17px;
    }


    .course-icon {
        width: 68px;
        height: 68px;

        flex-basis: 68px;

        border-radius: 15px;

        font-size: 19px;
    }


    .course-content h3 {
        font-size: 21px;
    }


    .course-content p {
        font-size: 13px;

        line-height: 1.6;
    }


    .course-info {
        gap: 10px;

        margin-bottom: 16px;
    }


    .course-btn {
        min-height: 46px;

        font-size: 13px;
    }


    .page-footer {
        width: calc(100% - 28px);

        flex-direction: column;

        gap: 8px;

        text-align: center;
    }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 380px) {

    .courses-hero {
        padding: 27px 20px;
    }


    .hero-content h1 {
        font-size: 28px;
    }


    .course-card {
        padding: 17px;
    }


    .course-content h3 {
        font-size: 19px;
    }
}


/* =========================
   ACCESSIBILITY
   ========================= */

button:focus-visible {
    outline: 3px solid rgba(255,153,0,0.35);
    outline-offset: 3px;
}


/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}