/* styles/_base.css - Global Base Elements */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

.page-title {
    margin: 0 0 20px;
    font-size: 2rem;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    margin-bottom: 18px;
}

.category-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.video-frame {
    margin: 30px 0;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
}

.video-frame {
    margin: 30px 0;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
}

.summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.module-intro {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.video-frame {
    margin: 30px 0;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    height: 360px;
    border: 0;
}

.code-tag,
.inline-tag {
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.section-title {
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--text);
}

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

.split-grid > * {
    min-width: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

@media (max-width: 1200px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}
