/**
 * 공용 히어로 섹션 — 메인 페이지 및 허브(카테고리) 페이지
 * @version 1.0.0
 */

.nutil-hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 50%, #f0f9ff 100%);
    border-bottom: 1px solid var(--color-neutral-200, #e5e7eb);
    padding: 48px 24px;
}

[data-theme='dark'] .nutil-hero {
    background: linear-gradient(135deg, #1e1b34 0%, #2a1b34 50%, #171f34 100%);
    border-bottom-color: var(--color-border, #2d2d42);
}

.nutil-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.nutil-hero-text {
    min-width: 0;
}

.nutil-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

[data-theme='dark'] .nutil-hero-badge {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
}

.nutil-hero-title {
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--color-slate-900, #0f172a);
}

[data-theme='dark'] .nutil-hero-title { color: #ffffff; }

.nutil-hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #7c3aed, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nutil-hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-slate-600, #475569);
    max-width: 520px;
    margin-bottom: 24px;
}

[data-theme='dark'] .nutil-hero-subtitle { color: #cbd5e1; }

.nutil-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.nutil-hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.nutil-hero-btn.primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.nutil-hero-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4); }

.nutil-hero-btn.secondary {
    background: #fff;
    color: #7c3aed;
    border: 1.5px solid rgba(124, 58, 237, 0.25);
}

.nutil-hero-btn.secondary:hover { background: rgba(124, 58, 237, 0.06); }

[data-theme='dark'] .nutil-hero-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #c4b5fd;
    border-color: rgba(196, 181, 253, 0.3);
}

.nutil-hero-stats {
    display: flex;
    gap: 28px;
}

.nutil-hero-stat-num { font-size: 20px; font-weight: 800; color: #7c3aed; }
[data-theme='dark'] .nutil-hero-stat-num { color: #c4b5fd; }
.nutil-hero-stat-label { font-size: 12px; color: var(--color-slate-500, #64748b); margin-top: 2px; }
[data-theme='dark'] .nutil-hero-stat-label { color: #94a3b8; }

.nutil-hero-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18);
    aspect-ratio: 1200 / 630;
}

.nutil-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── 반응형 ── */
@media (max-width: 860px) {
    .nutil-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .nutil-hero-media { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
    .nutil-hero-subtitle { margin-left: auto; margin-right: auto; }
    .nutil-hero-actions { justify-content: center; }
    .nutil-hero-stats { justify-content: center; }
}

@media (max-width: 480px) {
    .nutil-hero { padding: 32px 16px; }
    .nutil-hero-title { font-size: 24px; }
}
