/* =========================================================
   NEXTGEN VIRTUAL ACADEMY
   SELENIUM FRAMES PRACTICE LAB
   COMPLETE CSS
========================================================= */


/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    background: #f4f7fb;
    color: #0f172a;
    line-height: 1.6;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


button {
    cursor: pointer;
}


a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   SHELL
========================================================= */

.frames-shell {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.frames-header {
    height: 72px;

    background: #ffffff;

    border-bottom: 1px solid #dce3ee;

    display: flex;
    align-items: center;

    padding: 0 38px;

    gap: 30px;

    position: sticky;
    top: 0;

    z-index: 1000;
}


/* =========================================================
   BRAND
========================================================= */

.frames-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
}


.frames-brand strong {
    color: #0f172a;
}


.frames-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff;

    font-size: 19px;
    font-weight: 800;

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.25);
}


/* =========================================================
   NAVIGATION
========================================================= */

.frames-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


.frames-nav a {
    padding: 10px 14px;

    border-radius: 9px;

    color: #334155;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.frames-nav a:hover {
    background: #f1f5ff;

    color: #2563eb;
}


.frames-nav a.active {
    background: #eff6ff;

    color: #2563eb;
}


/* =========================================================
   PROFILE
========================================================= */

.frames-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 16px;

    border-left: 1px solid #dce3ee;
}


.frames-profile > span:last-child {
    display: flex;
    flex-direction: column;
}


.frames-profile strong {
    font-size: 12px;

    color: #0f172a;
}


.frames-profile small {
    font-size: 10px;

    color: #64748b;
}


.frames-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #eaf2ff;

    color: #2563eb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.frames-content {
    width: min(
        1280px,
        calc(100% - 48px)
    );

    margin: 28px auto 50px;

    flex: 1;
}


/* =========================================================
   HERO
========================================================= */

.frames-hero {
    min-height: 250px;

    border-radius: 22px;

    padding: 38px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    background:
        linear-gradient(
            115deg,
            #1e3a8a 0%,
            #2563eb 58%,
            #3b82f6 100%
        );

    box-shadow:
        0 16px 35px rgba(
            30,
            64,
            175,
            0.18
        );

    border: 1px solid
        rgba(
            59,
            130,
            246,
            0.35
        );
}


.frames-eyebrow {
    display: inline-block;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


.frames-hero .frames-eyebrow {
    color: #dbeafe;
}


.frames-hero h1 {
    margin-top: 12px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size:
        clamp(
            38px,
            4vw,
            55px
        );

    line-height: 1.08;

    letter-spacing: -2px;

    color: #ffffff;

    font-weight: 800;
}


.frames-hero h1 em {
    display: block;

    color: #dbeafe;

    font-style: normal;
}


.frames-hero p {
    max-width: 720px;

    margin-top: 14px;

    color: #eff6ff;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   HERO BADGE
========================================================= */

.frames-hero-badge {
    width: 150px;
    height: 150px;

    flex-shrink: 0;

    border-radius: 28px;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.25
        );

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    backdrop-filter: blur(8px);
}


.frames-hero-badge span {
    font-size: 11px;

    letter-spacing: 1px;

    color: #dbeafe;

    font-weight: 700;
}


.frames-hero-badge strong {
    margin-top: 5px;

    font-size: 30px;

    letter-spacing: 1px;
}


/* =========================================================
   INFORMATION CARD
========================================================= */

.frames-info-card {
    margin-top: 20px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 16px;

    padding: 25px;

    display: grid;

    grid-template-columns:
        280px 1fr;

    gap: 30px;

    box-shadow:
        0 5px 14px
        rgba(
            15,
            23,
            42,
            0.04
        );
}


.frames-info-card h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 19px;
}


.frames-info-card ul {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 10px 25px;

    padding-left: 20px;

    color: #475569;

    font-size: 12px;
}


.frames-info-card li::marker {
    color: #2563eb;
}


/* =========================================================
   LAB CARD
========================================================= */

.frames-lab-card {
    margin-top: 20px;

    background: #ffffff;

    border: 1px solid #dce3ee;

    border-radius: 18px;

    padding: 25px;

    box-shadow:
        0 6px 16px
        rgba(
            15,
            23,
            42,
            0.04
        );
}


/* =========================================================
   CARD HEADER
========================================================= */

.frames-card-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.frames-card-header > div:first-child {
    display: grid;

    grid-template-columns:
        auto 1fr;

    column-gap: 12px;

    align-items: center;
}


.frames-number {
    width: 38px;
    height: 38px;

    grid-row: span 2;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;
}


.frames-card-header h2 {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 18px;
}


.frames-card-header p {
    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}


.frames-tag {
    flex-shrink: 0;

    padding: 6px 10px;

    border-radius: 999px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


/* =========================================================
   FRAME DEMO
========================================================= */

.frame-demo-wrapper {
    width: 100%;

    padding: 8px;

    background: #f1f5f9;

    border: 1px solid #dce3ee;

    border-radius: 12px;
}


.frame-demo-wrapper iframe {
    display: block;

    width: 100%;

    height: 270px;

    border: 0;

    border-radius: 8px;

    background: #ffffff;
}


/* =========================================================
   FRAME HINT
========================================================= */

.frames-hint {
    margin-top: 15px;

    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-left: 3px solid #2563eb;

    border-radius: 9px;
}


.frames-hint strong {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.frames-hint code {
    display: block;

    padding: 9px 11px;

    overflow-x: auto;

    border-radius: 7px;

    background: #0f172a;

    color: #e2e8f0;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   NESTED FRAME
========================================================= */

.nested-frame-container {
    padding: 8px;

    background: #f1f5f9;

    border: 1px solid #dce3ee;

    border-radius: 12px;
}


.nested-frame-container > iframe {
    display: block;

    width: 100%;

    height: 390px;

    border: 0;

    border-radius: 8px;

    background: #ffffff;
}


/* =========================================================
   MAIN DOCUMENT DEMO
========================================================= */

.frames-main-demo {
    padding: 30px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fbff
        );

    border: 1px solid #bfdbfe;

    text-align: center;
}


.frames-main-demo h3 {
    color: #1e40af;

    font-size: 18px;
}


.frames-main-demo p {
    margin-top: 6px;

    color: #64748b;

    font-size: 12px;
}


.frames-main-demo button {
    margin-top: 18px;

    padding: 10px 18px;

    border: 0;

    border-radius: 8px;

    background: #2563eb;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 6px 14px
        rgba(
            37,
            99,
            235,
            0.20
        );

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.frames-main-demo button:hover {
    background: #1d4ed8;

    transform:
        translateY(-1px);
}


.frames-result {
    margin-top: 12px;

    min-height: 20px;

    color: #166534;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   CHEAT SHEET
========================================================= */

.frames-cheat-sheet {
    margin-top: 20px;

    padding: 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            115deg,
            #1e3a8a,
            #2563eb
        );

    color: #ffffff;

    box-shadow:
        0 12px 28px
        rgba(
            30,
            64,
            175,
            0.15
        );
}


.frames-cheat-sheet .frames-eyebrow {
    color: #dbeafe;
}


.frames-cheat-sheet h2 {
    margin-top: 7px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 22px;
}


.frames-code-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 15px;

    margin-top: 20px;
}


.frames-code-grid > div {
    padding: 16px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );
}


.frames-code-grid strong {
    display: block;

    margin-bottom: 9px;

    color: #dbeafe;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.frames-code-grid pre {
    margin: 0;

    overflow-x: auto;

    color: #ffffff;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.frames-footer {
    min-height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 15px 20px;

    border-top: 1px solid #dce3ee;

    background: #ffffff;

    color: #64748b;

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .frames-hero {
        flex-direction: column;

        align-items: flex-start;
    }


    .frames-hero-badge {
        width: 110px;
        height: 110px;

        border-radius: 20px;
    }


    .frames-hero-badge strong {
        font-size: 23px;
    }


    .frames-info-card {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 800px) {

    .frames-header {
        height: auto;

        min-height: 70px;

        padding: 12px 18px;

        flex-wrap: wrap;
    }


    .frames-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;
    }


    .frames-profile {
        margin-left: auto;
    }


    .frames-content {
        width: min(
            100% - 24px,
            1280px
        );

        margin-top: 15px;
    }


    .frames-hero {
        padding: 27px;

        border-radius: 17px;
    }


    .frames-info-card ul {
        grid-template-columns: 1fr;
    }


    .frames-code-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 560px) {

    .frames-brand > span:last-child {
        font-size: 14px;
    }


    .frames-profile > span:last-child {
        display: none;
    }


    .frames-hero h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }


    .frames-lab-card {
        padding: 18px;
    }


    .frames-card-header {
        flex-direction: column;
    }


    .frames-card-header > div:first-child {
        width: 100%;
    }


    .frame-demo-wrapper iframe {
        height: 300px;
    }


    .nested-frame-container > iframe {
        height: 420px;
    }


    .frames-cheat-sheet {
        padding: 20px;
    }

}
/* =========================================================
   BACK TO SELENIUM LAB
========================================================= */

.frames-back-row {
    margin-bottom: 14px;
}


.frames-back-button {
    display: inline-flex;

    align-items: center;

    padding: 9px 14px;

    border: 1px solid #bfdbfe;

    border-radius: 8px;

    background: #ffffff;

    color: #2563eb;

    font-size: 12px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.frames-back-button:hover {
    background: #eff6ff;

    color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px
        rgba(37, 99, 235, 0.12);
}