/*
Theme Name: CommunityScope Network
Theme URI: https://communityscope.net
Author: CS Team
Description: 커뮤니티 네트워크를 위한 미니멀 테마
Version: 1.0.2
Text Domain: cscope-theme
*/

/* === 워드프레스 리셋 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff !important;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .cscope-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .cscope-header {
        top: 46px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.cscope-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === 헤더 === */
.cscope-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cscope-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cscope-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.cscope-logo a {
    color: #1a1a1a;
    text-decoration: none;
}

.cscope-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
}

.cscope-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cscope-nav a {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cscope-nav a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

.cscope-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
    padding: 8px;
}

.cscope-hero {
    margin-top: 73px;
}

body.admin-bar .cscope-hero {
    margin-top: 105px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .cscope-hero {
        margin-top: 119px;
    }
}

/* === 히어로 섹션 === */
.cscope-hero {
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cscope-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20px 20px, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.cscope-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.cscope-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cscope-hero h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.cscope-hero-subtitle {
    font-size: 20px;
    color: #666666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cscope-hero-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.cscope-hero-avatars {
    display: flex;
    align-items: center;
}

.cscope-hero-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    margin-left: -12px;
    object-fit: cover;
}

.cscope-hero-avatar:first-child {
    margin-left: 0;
}

.cscope-hero-stats {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.cscope-hero-stats span {
    color: #666666;
    font-weight: 400;
}

.cscope-features {
    padding: 100px 0;
    background: #ffffff;
}

.cscope-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cscope-feature-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.cscope-feature-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.08);
    transform: translateY(-4px);
}

.cscope-feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.cscope-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.cscope-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.cscope-feature-card p {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
}

.cscope-mission {
    padding: 100px 0;
    background: #f8f9ff;
}

.cscope-mission-header {
    text-align: center;
    margin-bottom: 64px;
}

.cscope-mission-label {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.cscope-mission h2 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cscope-mission-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: center;
}

.cscope-mission-text p {
    font-size: 18px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cscope-mission-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cscope-meta-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cscope-meta-label {
    font-size: 13px;
    color: #999999;
    margin-bottom: 6px;
    font-weight: 500;
}

.cscope-meta-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.cscope-mission-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.cscope-mission-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.cscope-benefits {
    padding: 100px 0;
    background: #ffffff;
}

.cscope-benefits h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 64px;
}

.cscope-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cscope-benefit-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.cscope-benefit-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.cscope-benefit-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.cscope-benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cscope-benefit-card:hover .cscope-benefit-image img {
    transform: scale(1.05);
}

.cscope-benefit-content {
    padding: 28px;
}

.cscope-benefit-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.cscope-benefit-content p {
    font-size: 15px;
    color: #666666;
    line-height: 1.7;
}

.cscope-posts {
    padding: 100px 0;
    background: #f8f9ff;
}

.cscope-posts h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 64px;
}

.cscope-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.cscope-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.cscope-post-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.cscope-post-thumbnail {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.cscope-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cscope-post-card:hover .cscope-post-thumbnail img {
    transform: scale(1.03);
}

.cscope-post-content {
    padding: 32px;
}

.cscope-post-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.cscope-post-card:hover .cscope-post-title {
    color: #667eea;
}

.cscope-post-excerpt {
    font-size: 15px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.cscope-post-meta {
    font-size: 14px;
    color: #999999;
}

.cscope-footer {
    background: #1a1a1a;
    color: #999999;
    padding: 48px 0 24px;
    text-align: center;
}

.cscope-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cscope-footer p {
    margin-bottom: 12px;
    font-size: 15px;
}

.cscope-footer a {
    color: #667eea;
    transition: color 0.2s ease;
}

.cscope-footer a:hover {
    color: #764ba2;
}

.cscope-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 100px;
}

body.admin-bar .cscope-main {
    padding-top: 172px;
}

.cscope-archive-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 48px;
    text-align: center;
}

.cscope-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cscope-article {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.cscope-article h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.3;
}

.cscope-article-meta {
    font-size: 14px;
    color: #999999;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cscope-article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
}

.cscope-article-content p {
    margin-bottom: 24px;
}

.cscope-article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 48px 0 24px;
}

.cscope-article-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 36px 0 20px;
}

.cscope-article-content img {
    margin: 32px 0;
    border-radius: 12px;
}

/* ============================================
   PHÂN TRANG NGANG - QUAN TRỌNG NHẤT
   ============================================ */

/* Xóa toàn bộ list style mặc định */
.cscope-pagination,
.cscope-pagination *,
.cscope-pagination ul,
.cscope-pagination ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Container chính - NGANG */
.cscope-pagination {
    text-align: center !important;
    margin: 60px auto 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

/* UL phải NGANG */
.cscope-pagination ul,
.cscope-pagination .page-numbers {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* LI phải inline */
.cscope-pagination li,
.cscope-pagination ul li {
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Link và span */
.cscope-pagination a,
.cscope-pagination span,
.cscope-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Hover */
.cscope-pagination a:hover,
.cscope-pagination .page-numbers:hover {
    background: #667eea !important;
    border-color: #667eea !important;
    color: #ffffff !important;
}

/* Current page */
.cscope-pagination .current,
.cscope-pagination span.current {
    background: #667eea !important;
    border-color: #667eea !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Dots */
.cscope-pagination .dots {
    border: none !important;
    background: transparent !important;
    color: #999999 !important;
    cursor: default !important;
}

.cscope-pagination .dots:hover {
    background: transparent !important;
    color: #999999 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .cscope-hero h1 {
        font-size: 56px;
    }
    
    .cscope-mission h2,
    .cscope-benefits h2,
    .cscope-posts h2 {
        font-size: 40px;
    }
    
    .cscope-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cscope-mission-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .cscope-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cscope-nav {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        align-items: flex-start;
    }
    
    body.admin-bar .cscope-nav {
        top: 105px;
    }
    
    .cscope-nav.active {
        left: 0;
    }
    
    .cscope-menu-toggle {
        display: block;
    }
    
    .cscope-hero {
        padding: 80px 0;
    }
    
    .cscope-hero h1 {
        font-size: 42px;
    }
    
    .cscope-hero-subtitle {
        font-size: 18px;
    }
    
    .cscope-features-grid,
    .cscope-benefits-grid,
    .cscope-posts-grid,
    .cscope-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .cscope-mission-meta {
        grid-template-columns: 1fr;
    }
    
    .cscope-article {
        padding: 32px 24px;
    }
    
    .cscope-article h1 {
        font-size: 32px;
    }
    
    /* Phân trang mobile vẫn NGANG */
    .cscope-pagination {
        flex-wrap: wrap !important;
    }
    
    .cscope-pagination a,
    .cscope-pagination span {
        min-width: 36px !important;
        height: 36px !important;
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
}
