:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.app-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.app-header.scrolled { box-shadow: var(--shadow-lg); }
.header-inner {
    max-width: 960px; margin: 0 auto; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.header-title { font-size: 1.05rem; font-weight: 700; color: white; }
.header-sub { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: 960px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 0.82rem; color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: white; text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }

/* ===== MAIN ===== */
.main-content {
    max-width: 960px; margin: 0 auto;
    padding: 80px 16px 40px;
}

/* ===== HERO ===== */
.hero {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 28px 24px; margin-bottom: 24px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
    color: var(--primary-dark); padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; margin-bottom: 14px;
}
.hero h1 { font-size: 1.55rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.hero-desc { color: var(--text-secondary); font-size: 0.93rem; }

/* ===== NAV GRID ===== */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.nav-card {
    background: var(--surface); border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 20px; text-decoration: none; color: inherit;
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition);
}
.nav-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-3px);
    border-color: var(--primary-light);
}
.nav-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
}
.nav-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.nav-card-desc { font-size: 0.82rem; color: var(--text-secondary); }
.nav-badge {
    margin-left: auto; padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; white-space: nowrap;
    background: var(--primary-light); color: var(--primary-dark);
}

/* ===== FILE LIST ===== */
.file-list { display: flex; flex-direction: column; gap: 12px; }
.file-item {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; color: inherit;
    transition: var(--transition);
}
.file-item:hover {
    box-shadow: var(--shadow); border-color: var(--primary-light);
    transform: translateX(4px);
}
.file-icon { font-size: 1.6rem; flex-shrink: 0; }
.file-title { font-size: 0.98rem; font-weight: 600; margin-bottom: 3px; }
.file-meta { font-size: 0.8rem; color: var(--text-secondary); }
.star-badge {
    margin-left: auto; padding: 5px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.star-3 { background: #d1fae5; color: #065f46; }
.star-2 { background: #fef3c7; color: #92400e; }
.star-1 { background: #f1f5f9; color: #475569; }
.status-pending { background: #f1f5f9; color: #64748b; font-size: 0.78rem; padding: 4px 10px; border-radius: 20px; }
.status-ready   { background: #d1fae5; color: #065f46; font-size: 0.78rem; padding: 4px 10px; border-radius: 20px; }

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.6px;
    margin: 28px 0 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.3rem; }
    .nav-grid { grid-template-columns: 1fr; }
}
