:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #10b981;
    --primary-hover: #059669;
    --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 10px 20px -3px rgba(16, 185, 129, 0.15), 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(--dark-badge);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

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

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

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

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

/* Hero Section */
.hero-hub-section {
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 60%, #064e3b 100%);
    color: #ffffff;
    padding: 60px 20px 50px;
    text-align: center;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

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

.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.live-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.hero-hub-title {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.6px;
}

.hero-hub-desc {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-search-console {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(10px);
}

.search-input-box {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 12px;
}

.search-input-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    width: 100%;
    padding: 6px 8px;
}

.search-input-box input::placeholder {
    color: #94a3b8;
}

.search-btn-icon {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-switch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.switch-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.switch-chip:hover, .switch-chip.active {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.hero-facts-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.fact-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fact-item strong {
    color: #ffffff;
}

/* 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 Cards */
.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: #34d399;
    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-hover);
    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-hover);
}

/* 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: #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 Cards */
.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-hover);
    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: #0f172a;
    color: #94a3b8;
    padding: 50px 20px 30px;
    border-top: 1px solid #1e293b;
}

.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: #cbd5e1;
}

.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: #94a3b8;
    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.08);
    padding-top: 24px;
    font-size: 0.8rem;
    text-align: center;
    color: #64748b;
}

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

#no-search-results {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-weight: 700;
    display: none;
    margin-bottom: 40px;
}

/* ============================================================
   모바일 최적화 반응형 CSS (배지+로고 상단 정렬 및 텍스트 풀위드)
   ============================================================ */
@media screen and (max-width: 768px) {
    .site-header {
        height: auto !important;
        padding: 10px 0 !important;
    }
    .header-container {
        height: auto !important;
        padding: 0 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .site-nav {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .site-nav .nav-list {
        display: flex !important;
        gap: 14px !important;
        white-space: nowrap !important;
        padding-bottom: 4px !important;
    }
    .site-nav .nav-link {
        font-size: 0.88rem !important;
    }

    .hero-hub-section, .hero-section, .hero-bento-section, .hero-scout-section {
        padding: 30px 16px 24px !important;
    }
    .hero-hub-title, .hero-title, .hero-main-title, .hero-scout-title {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }
    .hero-hub-desc, .hero-desc, .hero-sub-desc, .hero-scout-desc {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 18px !important;
    }
    .hero-search-console {
        padding: 12px !important;
        gap: 10px !important;
    }
    .search-input-box {
        flex-direction: column !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        gap: 8px !important;
    }
    .search-input-box input {
        background: rgba(15, 23, 42, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .search-btn-icon {
        width: 100% !important;
        padding: 10px 0 !important;
        border-radius: 8px !important;
    }
    .filter-switch-row, .quick-filter-pills {
        gap: 6px !important;
    }
    .switch-chip, .filter-pill {
        font-size: 0.72rem !important;
        padding: 5px 10px !important;
    }
    .hero-facts-ribbon, .bento-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-top: 16px !important;
    }

    .page-wrapper {
        padding: 20px 14px 40px !important;
    }
    .ranking-list {
        gap: 12px !important;
    }
    .ranking-card, .matrix-ranking-card, .bento-ranking-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
        gap: 12px !important;
    }

    /* 카드 좌측: 배지(44px) + 로고(110px) 1열 가로 배치 */
    .card-left-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .rank-badge-box {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }
    .rank-num {
        font-size: 1.05rem !important;
    }
    .logo-thumb-box {
        width: 110px !important;
        height: 44px !important;
        flex-shrink: 0 !important;
    }
    
    /* 텍스트 구좌: 아래 줄 전체 너비 확장 */
    .card-center-info {
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 4px !important;
    }
    .site-name {
        font-size: 1.05rem !important;
    }
    .card-desc {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        margin: 6px 0 !important;
        word-break: keep-all !important;
    }
    .tags-row {
        gap: 4px !important;
    }
    .tag-badge {
        font-size: 0.7rem !important;
        padding: 2px 7px !important;
    }

    /* 카드 우측: 혜택 상단 + 풀사이즈 아웃링크 버튼 */
    .card-right-group {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        border-top: 1px dashed var(--border-color) !important;
        padding-top: 12px !important;
    }
    .benefit-info {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
    }
    .benefit-text {
        font-size: 1.05rem !important;
    }
    .rating-score {
        font-size: 0.8rem !important;
    }
    .btn-outbound {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 0 !important;
        border-radius: 8px !important;
        font-size: 0.92rem !important;
        box-sizing: border-box !important;
    }

    .seo-content-box {
        padding: 20px 16px !important;
    }
    .seo-content-box h2 {
        font-size: 1.15rem !important;
    }
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .post-card {
        padding: 16px !important;
    }
}