/* @theme blue-geometric-theme */

/* =========================================
   Blue Geometric Marp Theme
   =========================================

   [사용법]
   마크다운 frontmatter에서:
   ---
   marp: true
   theme: blue-geometric-theme
   ---

   [슬라이드 클래스] <!-- _class: 클래스명 -->
   - title        : 타이틀 슬라이드 (다크블루 배경)
   - white-bg     : 화이트 배경 콘텐츠 슬라이드
   - contents     : 목차 슬라이드 (중앙 정렬, 큰 제목)
   - section-split: 섹션 구분 슬라이드
   - balanced     : 수직 중앙 정렬
   - top-align    : 상단 정렬

   [레이아웃 클래스]
   - .col-2, .col-3, .col-4 : 그리드 레이아웃
   - .layout-sidebar-left   : 좌측 사이드바 (3:7)
   - .layout-sidebar-right  : 우측 사이드바 (7:3)
   - .layout-wide-left      : 넓은 좌측 (6:4)
   - .layout-wide-right     : 넓은 우측 (4:6)
   - .layout-split-half     : 상하 2등분
   - .layout-header-body    : 상단 헤더 + 하단 본문 (2:8)
   - .layout-body-footer    : 상단 본문 + 하단 푸터 (8:2)
   - .layout-golden         : 황금비율 (5:8)
   - .compare-layout        : 좌우 비교 레이아웃
   - .steps-horizontal      : 가로 단계별 레이아웃
   - .timeline-vertical     : 세로 타임라인

   [박스/카드 클래스]
   - .card, .card-accent    : 카드 스타일
   - .box-highlight         : 강조 박스
   - .box-outline           : 아웃라인 박스
   - .icon-box              : 아이콘 + 텍스트 박스

   [기타]
   - .text-center, .text-left, .text-right
   - ul.check-list          : 체크 리스트
   - .tag, .tag-accent      : 태그 뱃지

   ========================================= */

@import 'default';

:root {
    /* 메인 컬러 - 파스텔 톤 (dark-blue 유지) */
    --dark-blue: #1a5a7a;
    --mid-blue: #8bbad4;
    --light-blue: #b8d8eb;
    --pale-blue: #d9ecf5;
    --soft-blue: #eef6fb;
    --white: #ffffff;

    /* 텍스트 & 보조 컬러 */
    --text-dark: #3d5a6a;
    --text-light: #f8fbfd;
    --accent: #6aa3c2;
    --border-light: rgba(255,255,255,0.3);
    --shadow: rgba(60,90,110,0.08);
}

section {
    width: 1280px;
    height: 720px;
    font-family: 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    line-height: 1.7;
}

/* 대각선 기하학 배경 - 우측 중앙으로 모이는 여밈 형태 (<) */
section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* 상단 대각선 */
        linear-gradient(158deg,
            rgba(139,186,212,0.6) 0%, rgba(139,186,212,0.6) 48%,
            rgba(184,216,235,0.45) 48%, rgba(184,216,235,0.45) 56%,
            rgba(217,236,245,0.3) 56%, rgba(217,236,245,0.3) 64%,
            var(--dark-blue) 64%),
        /* 하단 대각선 */
        linear-gradient(202deg,
            rgba(139,186,212,0.6) 0%, rgba(139,186,212,0.6) 48%,
            rgba(184,216,235,0.45) 48%, rgba(184,216,235,0.45) 56%,
            rgba(217,236,245,0.3) 56%, rgba(217,236,245,0.3) 64%,
            var(--dark-blue) 64%);
    z-index: 0;
}

section::after {
    content: none;
}

section > * {
    position: relative;
    z-index: 1;
}

/* -----------------------------------------
   2. 타이포그래피 (Typography)
   ----------------------------------------- */
h1, h2, h3, h4 { margin-top: 0; font-weight: 700; }
h1 { font-size: 48px; letter-spacing: -1px; }
h2 { font-size: 38px; margin-bottom: 25px; }
h3 { font-size: 26px; margin-bottom: 15px; opacity: 0.95; }
h4 { font-size: 20px; margin-bottom: 10px; }
strong { font-weight: 700; }

/* 화이트 배경용 타이포 */
section.white-bg h1, section.white-bg h2,
section.white-bg h3, section.white-bg strong { color: var(--dark-blue); }
section.white-bg h3 { color: var(--accent); }

/* -----------------------------------------
   3. 슬라이드 타입 (Slide Types)
   ----------------------------------------- */

/* 제목 슬라이드 */
section.title h1 {
    font-size: 120px;
    margin: 0;
    letter-spacing: -2px;
}

section.title p {
    font-size: 26px;
    line-height: 1.7;
    max-width: 650px;
    opacity: 0.85;
}

/* 화이트 배경 콘텐츠 슬라이드 */
section.white-bg {
    background-color: var(--soft-blue);
    color: var(--text-dark);
    justify-content: flex-start;
    padding-top: 50px;
}

section.white-bg::before {
    opacity: 0.25;
}

section.white-bg h2 {
    color: var(--dark-blue);
    font-size: 34px;
    margin-bottom: 25px;
    border-left: 5px solid var(--accent);
    padding-left: 18px;
}

/* 목차 슬라이드 (contents) */
section.contents {
    justify-content: center;
}

section.contents h2 {
    font-size: 50px;
    border-left: none;
    padding-left: 0;
    margin-bottom: 40px;
}

/* 섹션 구분 슬라이드 */
section.section-split {
    padding-left: 70px;
}

section.section-split h1 {
    font-size: 140px;
    opacity: 0.4;
    margin: 0;
}

section.section-split h2 {
    font-size: 60px;
    margin-top: -15px;
}

/* 수직 정렬 */
section.balanced { justify-content: center; }
section.top-align { justify-content: flex-start; padding-top: 80px; }

/* -----------------------------------------
   4. 레이아웃 시스템 (Layouts)
   ----------------------------------------- */

/* 기본 그리드 */
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.col-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; }
.col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* 사이드바 레이아웃 */
.layout-sidebar-left { display: grid; grid-template-columns: 3fr 7fr; gap: 40px; align-items: start; }
.layout-sidebar-right { display: grid; grid-template-columns: 7fr 3fr; gap: 40px; align-items: start; }
.layout-wide-left { display: grid; grid-template-columns: 6fr 4fr; gap: 35px; align-items: start; }
.layout-wide-right { display: grid; grid-template-columns: 4fr 6fr; gap: 35px; align-items: start; }

/* 상하 분할 레이아웃 */
.layout-split-half { display: grid; grid-template-rows: 1fr 1fr; gap: 25px; height: 100%; }
.layout-header-body { display: grid; grid-template-rows: auto 1fr; gap: 20px; height: 100%; }
.layout-body-footer { display: grid; grid-template-rows: 1fr auto; gap: 20px; height: 100%; }
.layout-golden { display: grid; grid-template-columns: 5fr 8fr; gap: 35px; align-items: center; }

/* 비교 레이아웃 */
.compare-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: 100%;
}
.compare-layout > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.compare-layout .compare-title {
    font-size: 24px;
    font-weight: 700;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}
.compare-layout .compare-left .compare-title { background: rgba(255,255,255,0.15); }
.compare-layout .compare-right .compare-title { background: var(--accent); }
section.white-bg .compare-layout .compare-left .compare-title { background: rgba(26,90,122,0.1); color: var(--dark-blue); }
section.white-bg .compare-layout .compare-right .compare-title { background: var(--dark-blue); color: var(--white); }

/* 가로 단계별 레이아웃 */
.steps-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
}
.steps-horizontal .step {
    flex: 1;
    text-align: center;
    padding: 25px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    position: relative;
}
.steps-horizontal .step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.6;
}
.steps-horizontal .step-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 12px;
}
section.white-bg .steps-horizontal .step { background: var(--white); box-shadow: 0 2px 10px var(--shadow); }
section.white-bg .steps-horizontal .step-number { background: var(--dark-blue); }

/* 세로 타임라인 */
.timeline-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 30px;
    border-left: 3px solid var(--light-blue);
}
.timeline-vertical .timeline-item {
    position: relative;
    padding-left: 25px;
}
.timeline-vertical .timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--light-blue);
}
.timeline-vertical .timeline-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--light-blue);
    margin-bottom: 5px;
}
section.white-bg .timeline-vertical { border-left-color: var(--accent); }
section.white-bg .timeline-vertical .timeline-item::before { background: var(--dark-blue); border-color: var(--accent); }
section.white-bg .timeline-vertical .timeline-date { color: var(--dark-blue); }

/* 피처 그리드 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-grid .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}
.feature-grid .feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.feature-grid .feature-content h4 { margin-bottom: 5px; }
.feature-grid .feature-content p { margin: 0; font-size: 15px; opacity: 0.85; }
section.white-bg .feature-grid .feature-item { background: var(--white); box-shadow: 0 2px 8px var(--shadow); }

/* 숫자 강조 레이아웃 */
.stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 30px 0;
}
.stats-row .stat-item .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--light-blue);
    line-height: 1;
}
.stats-row .stat-item .stat-label {
    font-size: 16px;
    opacity: 0.8;
    margin-top: 8px;
}
section.white-bg .stats-row .stat-item .stat-number { color: var(--dark-blue); }

/* 레거시 호환 */
section.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* -----------------------------------------
   5. 카드 & 박스 스타일 (Cards & Boxes)
   ----------------------------------------- */
.card {
    background: rgba(255,255,255,0.12);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(5px);
}

.card-accent {
    background: rgba(255,255,255,0.18);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--light-blue);
}

/* 화이트 배경용 카드 */
section.white-bg .card {
    background: var(--white);
    border: 1px solid rgba(26,90,122,0.1);
    box-shadow: 0 4px 15px var(--shadow);
}

section.white-bg .card-accent {
    background: var(--white);
    border: 1px solid rgba(26,90,122,0.1);
    border-left: 5px solid var(--accent);
    box-shadow: 0 4px 15px var(--shadow);
}

.box-highlight {
    background: rgba(168,212,235,0.2);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 5px solid var(--light-blue);
}

section.white-bg .box-highlight {
    background: rgba(45,138,184,0.08);
    border-left-color: var(--accent);
}

.box-outline {
    border: 2px solid var(--border-light);
    padding: 20px;
    border-radius: 10px;
    background: transparent;
}

section.white-bg .box-outline {
    border-color: rgba(26,90,122,0.2);
}

.icon-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.icon-box .icon {
    font-size: 32px;
    flex-shrink: 0;
}

/* -----------------------------------------
   6. 리스트 스타일 (Lists)
   ----------------------------------------- */
ul, ol { padding-left: 25px; }
li { margin-bottom: 8px; }

ul.check-list { list-style: none; padding: 0; }
ul.check-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}
ul.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
}

section.white-bg ul.check-list li::before {
    color: var(--accent);
}

/* -----------------------------------------
   7. 테이블 스타일 (Tables)
   ----------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 17px;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: rgba(255,255,255,0.15);
    font-weight: 700;
}

section.white-bg table {
    border: 1px solid rgba(26,90,122,0.15);
    border-radius: 8px;
    overflow: hidden;
}

section.white-bg th {
    background: var(--dark-blue);
    color: var(--white);
}

section.white-bg td {
    border-bottom-color: rgba(26,90,122,0.1);
}

section.white-bg tr:nth-child(even) td {
    background: rgba(45,138,184,0.04);
}

/* -----------------------------------------
   8. 태그 & 뱃지 (Tags & Badges)
   ----------------------------------------- */
.tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    margin-right: 8px;
}

.tag-accent {
    background: var(--light-blue);
    color: var(--dark-blue);
}

section.white-bg .tag {
    background: rgba(26,90,122,0.1);
    color: var(--dark-blue);
}

section.white-bg .tag-accent {
    background: var(--accent);
    color: var(--white);
}

/* 타임라인 육각형 스타일 */
strong.year {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent);
    color: var(--white);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    font-size: 14px;
}

/* -----------------------------------------
   9. 유틸리티 (Utilities)
   ----------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.opacity-80 { opacity: 0.8; }
.flex-grow { flex-grow: 1; }