:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --dark-badge: #0f172a;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 12px 20px -3px rgba(79, 70, 229, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
}

.site-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Modern Editorial Intro Bar (독창적 인트로 상단 바) */
.editorial-intro-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 26px 20px;
}

.intro-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.intro-left-content {
    display: flex;
    flex-direction: column;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 6px;
}

.intro-main-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.intro-sub-guide {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 2px;
}

.quick-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover, .filter-pill.active {
    background: #4f46e5;
    color: #ffffff;
}

/* Main Content Area */
.main-content {
    min-height: calc(100vh - 350px);
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 60px;
}

/* 3-Column Modern Grid Cards (독창적 카드 UI) */
.ranking-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.rank-grid-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.rank-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
    border-color: #c7d2fe;
}

/* Card Header Ribbon */
.card-header-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rank-badge-ribbon {
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.score-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: #4f46e5;
    background: #eef2ff;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Card Title & Subtitle */
.card-title-block {
    margin-bottom: 14px;
}

.card-title-block h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.card-title-block p {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

/* Logo Showcase Box */
.card-logo-box {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

.card-logo-box img {
    max-width: 85%;
    max-height: 65%;
    object-fit: contain;
}

/* Key Metrics Box (스펙 메트릭스 박스) */
.metrics-spec-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

.spec-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
}

.spec-val.accent {
    color: #4f46e5;
}

/* Checkpoint List (3대 체크포인트) */
.card-checkpoints {
    list-style: none;
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.card-checkpoints li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.card-checkpoints li::before {
    content: "✓";
    color: #4f46e5;
    font-weight: 900;
}

/* Dual Action Buttons */
.card-action-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 8px;
    margin-top: auto;
}

.btn-card-primary {
    background: #4f46e5;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-card-primary:hover {
    background: #4338ca;
}

.btn-card-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-card-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* SEO Content Box */
.seo-content-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 50px;
    line-height: 1.8;
}

.seo-content-box h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 28px 0 12px;
    color: var(--text-main);
}

.seo-content-box h2:first-child {
    margin-top: 0;
}

.seo-content-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 18px 0 8px;
    color: #0f172a;
}

.seo-content-box p {
    color: #475569;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.seo-content-box ul {
    margin: 12px 0 18px 24px;
    color: #475569;
}

.seo-content-box li {
    margin-bottom: 6px;
}

/* Post Card Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.post-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.post-cat-badge {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.post-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-main);
}

.post-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.post-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

/* Article Detail */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.35;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

.article-body {
    line-height: 1.85;
    font-size: 1rem;
    color: #334155;
}

.article-body h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 30px 0 12px;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 14px;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 20px 30px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-desc {
    max-width: 400px;
    font-size: 0.82rem;
    margin-top: 8px;
    line-height: 1.5;
    color: #cbd5e1;
}

.footer-links-grid {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 0.78rem;
    text-align: center;
    color: #64748b;
}

.disclaimer-text {
    margin-top: 6px;
    font-size: 0.72rem;
    color: #64748b;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .ranking-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .ranking-grid-3col {
        grid-template-columns: 1fr;
    }
    .intro-bar-container {
        flex-direction: column;
        align-items: flex-start;
    }
}