@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ===== 디자인 토큰 ===== */
:root {
    --bg:           #f1f5f9;
    --card:         #ffffff;
    --text-primary: #0f172a;
    --text-muted:   #64748b;
    --accent:       #6366f1;
    --accent-light: #ede9fe;
    --warm:         #f59e0b;
    --warm-light:   #fef3c7;
    --border:       #e2e8f0;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    --shadow-md:    0 4px 12px rgba(0,0,0,.08), 0 16px 32px rgba(0,0,0,.08);
    --radius:       16px;
}

/* ===== 리셋 & 기본 ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
}

/* ===== 히어로 ===== */
.hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
    padding: 64px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 배경 장식 원 */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .08;
    background: white;
}
.hero::before { width: 400px; height: 400px; top: -120px; left: -100px; }
.hero::after  { width: 300px; height: 300px; bottom: -80px; right: -60px; }

/* 조건 1: 본인 사진 */
.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.25);
    box-shadow: 0 0 0 8px rgba(99,102,241,.35), var(--shadow-md);
    position: relative;
    z-index: 1;
}

/* 조건 6: 큰 글씨 */
.hero-name {
    font-size: 2.6em;
    font-weight: 700;
    color: #ffffff;
    margin: 20px 0 6px;
    letter-spacing: -0.5px;
}

.hero-role {
    font-size: 1em;
    color: #a5b4fc;
    margin: 0 0 12px;
    font-weight: 300;
}

/* 조건 5: 이탤릭 */
.hero-sub {
    font-size: .95em;
    color: rgba(255,255,255,.55);
    font-style: italic;
    margin: 0;
}

/* ===== 메인 컨테이너 ===== */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

/* ===== 카드 ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
    margin-top: 28px;
}

/* ===== 섹션 제목 ===== */
.card-title {
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== 조건 2: 소개 테이블 ===== */
.intro-table {
    width: 100%;
    border-collapse: collapse;
}

.intro-table tr:not(:last-child) td,
.intro-table tr:not(:last-child) th {
    border-bottom: 1px solid var(--border);
}

.intro-table th,
.intro-table td {
    padding: 13px 4px;
    text-align: left;
    vertical-align: top;
}

.intro-table th {
    width: 30%;
    font-size: .85em;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .03em;
    padding-right: 16px;
}

.intro-table td {
    font-size: .95em;
    color: var(--text-primary);
}

/* ===== 조건 3: 글씨 색상 2종 ===== */
.color-accent { color: var(--accent); }
.color-warm   { color: #b45309; }

/* ===== 조건 4: 글씨 배경색 2종 + 태그 ===== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .82em;
    font-weight: 500;
}

.tag-purple {
    background-color: var(--accent-light);
    color: var(--accent);
}

.tag-amber {
    background-color: var(--warm-light);
    color: #92400e;
}

/* ===== 인용 카드 ===== */
.quote-block {
    border-left: 3px solid var(--accent);
    padding: 10px 0 10px 20px;
    margin: 0;
}

/* 조건 6: 중간 크기 */
.quote-text {
    font-size: 1.15em;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px;
}

/* 조건 5: 이탤릭 */
.quote-sub {
    font-style: italic;
    font-size: .9em;
    color: var(--text-muted);
    margin: 0;
}

/* 조건 6: 작은 글씨 */
.text-sm { font-size: .82em; color: var(--text-muted); margin-top: 6px; }

/* ===== 조건 8: 검색엔진 ===== */
.engine-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.engine-card {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    font-size: .95em;
    font-weight: 500;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.engine-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    color: var(--accent);
}

.engine-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== 유튜브 썸네일 링크 ===== */
.video-thumb {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}

.video-thumb img {
    width: 100%;
    display: block;
    transition: filter .2s;
}

.video-thumb:hover img {
    filter: brightness(.75);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 0, .88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    color: #fff;
    padding-left: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
    transition: transform .18s, background .18s;
}

.video-thumb:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(200, 0, 0, .95);
}

/* ===== 푸터 ===== */
.footer {
    text-align: center;
    padding: 24px 0 32px;
    font-size: .78em;
    color: var(--text-muted);
    letter-spacing: .04em;
}
