:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #059669;
    --primary-hover: #047857;
    --dark-badge: #064e3b;
    --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 10px 15px -3px rgba(5, 150, 105, 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: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 20px 50px;
    text-align: center;
}

.hero-container {
    max-width: 860px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
}

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

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

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Ranking Vertical Cards UI */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 50px;
}

.ranking-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
    border-color: #6ee7b7;
}

.card-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.rank-badge-box {
    background: var(--dark-badge);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-num {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.rank-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #a7f3d0;
    margin-top: 3px;
}

.logo-thumb-box {
    width: 140px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-thumb-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-center-info {
    flex: 1;
    min-width: 200px;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.45;
}

.tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-badge {
    background: #f0fdf4;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
}

.card-right-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.benefit-info {
    text-align: right;
}

.benefit-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.rating-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f59e0b;
    margin-top: 2px;
}

.btn-outbound {
    background: var(--dark-badge);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 50px;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-outbound:hover {
    background: var(--primary);
}

/* 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.4rem;
    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.15rem;
    font-weight: 700;
    margin: 18px 0 8px;
    color: #064e3b;
}

.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: 12px;
    padding: 24px;
    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(-3px);
    box-shadow: var(--card-hover-shadow);
}

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

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

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

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

/* Article Detail */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    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.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.35;
}

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

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

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

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

/* Footer */
.site-footer {
    background: #064e3b;
    color: #a7f3d0;
    padding: 50px 20px 30px;
    border-top: 1px solid #047857;
}

.footer-container {
    max-width: 1120px;
    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.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-desc {
    max-width: 400px;
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.5;
    color: #6ee7b7;
}

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

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

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    font-size: 0.8rem;
    text-align: center;
    color: #6ee7b7;
}

.disclaimer-text {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #a7f3d0;
}

/* Responsive */
@media (max-width: 868px) {
    .ranking-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .card-left-group {
        width: 100%;
    }
    .card-right-group {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid #f1f5f9;
        padding-top: 14px;
    }
    .benefit-info {
        text-align: left;
    }
}