:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --primary: #10b981;
    --primary-dark: #059669;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 10px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-base); color: var(--text-main); font-family: var(--font-stack); line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.header-container { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.site-logo { font-size: 1.4rem; font-weight: 800; }
.text-accent { color: var(--primary); }
.nav-menu { display: flex; list-style: none; gap: 1.5rem; }
.nav-link { color: var(--text-muted); font-weight: 600; }
.nav-link:hover { color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; padding: 0.5rem 1.2rem; border-radius: 6px; font-weight: 700; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-dark); }

/* Hero */
.hero-banner { text-align: center; padding: 4rem 1.5rem; background: linear-gradient(to bottom, #f1f5f9, #f8fafc); border-bottom: 1px solid var(--border-color); }
.hero-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; color: #0f172a; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

/* Main */
.main-wrapper { max-width: 1100px; margin: 3rem auto; padding: 0 1.5rem; }
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; color: #1e293b; border-left: 4px solid var(--primary); padding-left: 10px; }

/* Rankings - 로고 배너 컨테이너 필수 적용 */
.rankings-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.ranking-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.2rem; display: flex; align-items: center; gap: 1.5rem; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: transform 0.2s, box-shadow 0.2s; }
.ranking-card:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.05); border-color: var(--primary); }

.rank-number { font-size: 1.5rem; font-weight: 900; color: #cbd5e1; width: 40px; text-align: center; }
.ranking-card:nth-child(1) .rank-number { color: #f59e0b; }
.ranking-card:nth-child(2) .rank-number { color: #94a3b8; }
.ranking-card:nth-child(3) .rank-number { color: #d97706; }

/* 공식 로고 배너 화이트 컨테이너 */
.logo-box { width: 140px; height: 60px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 5px; flex-shrink: 0; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; } /* 비율 유지 찌그러짐 방지 */

.platform-info { flex-grow: 1; }
.platform-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.platform-name { font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.special-badge { background: #ecfdf5; color: #059669; font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; font-weight: 700; }
.platform-benefit { color: var(--primary-dark); font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.platform-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.4; }

.platform-specs { display: flex; gap: 1.5rem; font-size: 0.85rem; margin-top: 8px; color: #475569; }
.spec-item span { font-weight: 700; color: #0f172a; }

.card-action { flex-shrink: 0; }
.btn-go { background: var(--primary); color: #fff; padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 800; font-size: 0.95rem; display: block; text-align: center; }
.btn-go:hover { background: var(--primary-dark); }

/* SEO Content Box (원고 탑재 영역) */
.seo-content-box { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 2.5rem; margin-bottom: 4rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.seo-content-box h3 { font-size: 1.4rem; color: #0f172a; margin-bottom: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; }
.seo-content-box h4 { font-size: 1.15rem; color: #1e293b; margin: 1.8rem 0 0.8rem 0; font-weight: 700; }
.seo-content-box p { font-size: 1rem; color: #475569; margin-bottom: 1rem; line-height: 1.75; }
.seo-point { text-align: center; font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; margin: 2rem 0; padding: 1rem; background: #f8fafc; border: 1px dashed var(--primary); border-radius: 8px; }

/* Posts Grid */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.post-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--primary); }
.cat-badge { align-self: flex-start; background: #f1f5f9; color: #475569; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; margin-bottom: 1rem; }
.post-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.4; color: #0f172a; }
.post-card-excerpt { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 1.5rem; flex-grow: 1; }
.post-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; border-top: 1px solid #f1f5f9; padding-top: 1rem; }

/* Article View */
.article-container { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; }
.article-header { border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.article-title { font-size: 1.8rem; font-weight: 800; color: #0f172a; margin: 1rem 0; line-height: 1.4; }
.article-meta-row { display: flex; gap: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.article-content { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.article-content h2 { font-size: 1.4rem; color: #0f172a; margin: 2rem 0 1rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }

/* Footer */
.site-footer { background: #0f172a; color: #f8fafc; padding: 3rem 1.5rem; margin-top: 4rem; }
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-brand { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; color: #fff; }
.footer-desc { color: #94a3b8; font-size: 0.85rem; margin-bottom: 2rem; max-width: 600px; }
.footer-links-grid { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links-grid a { color: #cbd5e1; font-size: 0.9rem; font-weight: 600; }
.footer-links-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; font-size: 0.8rem; color: #64748b; display: flex; justify-content: space-between; }

@media (max-width: 992px) {
    .ranking-card { flex-direction: column; align-items: stretch; gap: 1rem; }
    .rank-number { width: auto; text-align: left; margin-bottom: -10px; }
    .logo-box { width: 100%; height: 80px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 1rem; }
}

@media (max-width: 640px) {
    .main-nav, .header-action { display: none; }
    .posts-grid { grid-template-columns: 1fr; }
    .platform-specs { flex-direction: column; gap: 0.5rem; }
}