
/* =====================================================
   WIRELAB — UNIT 03: STATIC ELECTRICITY
===================================================== */


/* =====================================================
   PAGE CONTENT
===================================================== */

.study-content {
    width: min(900px, calc(100% - 16px));
    margin: 0 auto;
    padding-bottom: 40px;
    box-sizing: border-box;
}


/* =====================================================
   UNIT INTRO
===================================================== */

.study-intro {
    margin-bottom: 12px;
    padding: 16px;
    background: var(--wire-bg);
    border: 1px solid var(--wire-border);
    border-radius: 6px;
}

.study-intro-title {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--wire-text-bright);
}


/* =====================================================
   COURSE OVERVIEW
===================================================== */

.course-overview {
    margin-bottom: 16px;
    padding: 20px 16px;
    background: var(--wire-bg);
    border: 1px solid var(--wire-border);
    border-radius: 6px;
}

.course-overview-label {
    margin-bottom: 8px;
    color: var(--wire-accent);
    font-size: 11px;
    letter-spacing: 1px;
}

.course-overview-title {
    margin-bottom: 10px;
    color: var(--wire-text-bright);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
}

.course-overview-description {
    color: var(--wire-text-muted);
    font-size: 13px;
    line-height: 1.8;
}


/* =====================================================
   STUDY SECTIONS
===================================================== */

.study-section {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--wire-bg);
    border: 1px solid var(--wire-border);
    border-radius: 6px;
}


/* =====================================================
   SECTION HEADINGS
===================================================== */

.study-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--wire-border);
}

.study-section-number {
    display: flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: var(--wire-active);
    border: 1px solid var(--wire-border);
    border-radius: 5px;
    color: var(--wire-accent);
    font-size: 12px;
}

.study-section-info {
    flex: 1;
    min-width: 0;
}

.study-section-title {
    margin-bottom: 5px;
    color: var(--wire-text-bright);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
}

.study-section-description {
    color: var(--wire-text-muted);
    font-size: 12px;
    line-height: 1.6;
}


/* =====================================================
   STUDY UNIT GRID
===================================================== */

.study-unit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}


/* =====================================================
   STUDY UNIT CARDS
===================================================== */

.study-unit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 14px;
    background: var(--wire-bg);
    border: 1px solid var(--wire-border);
    border-radius: 5px;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.study-unit:hover {
    border-color: var(--wire-accent);
    background: var(--wire-hover);
}


/* =====================================================
   UNIT CARD LABELS
===================================================== */

.study-unit-number {
    margin-bottom: 8px;
    color: var(--wire-accent);
    font-size: 10px;
    letter-spacing: 0.7px;
    line-height: 1.5;
}

.study-unit-title {
    margin-bottom: 8px;
    color: var(--wire-text-bright);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.study-unit-description {
    color: var(--wire-text-muted);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.8;
}


/* =====================================================
   SAFETY REFERENCE CARDS
===================================================== */

.study-unit.safety-reference {
    border-color: rgba(210, 150, 70, 0.3);
}

.study-unit.safety-reference:hover {
    border-color: rgba(210, 150, 70, 0.7);
}


/* =====================================================
   NEXT UNIT
===================================================== */

.study-next {
    padding: 18px 16px;
    background: var(--wire-bg);
    border: 1px solid var(--wire-border);
    border-radius: 6px;
}

.study-next-label {
    margin-bottom: 8px;
    color: var(--wire-accent);
    font-size: 10px;
    letter-spacing: 1px;
}

.study-next-title {
    margin-bottom: 8px;
    color: var(--wire-text-bright);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
}

.study-next-description {
    color: var(--wire-text-muted);
    font-size: 12px;
    line-height: 1.8;
}


/* =====================================================
   MOBILE LAYOUT
===================================================== */

@media (max-width: 600px) {

    .study-content {
        width: calc(100% - 12px);
    }

    .study-intro {
        padding: 13px;
    }

    .study-intro-title {
        font-size: 19px;
    }

    .course-overview {
        padding: 16px 13px;
    }

    .course-overview-title {
        font-size: 21px;
    }

    .study-section {
        padding: 12px;
    }

    .study-section-heading {
        gap: 9px;
    }

    .study-section-number {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .study-section-title {
        font-size: 16px;
    }

    .study-unit-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .study-unit {
        padding: 13px;
    }

    .study-next {
        padding: 15px 13px;
    }

}
