/**
 * ContextNoted Homepage Styles
 *
 * @package ContextNoted_Display
 */

/* Hero Section */
.cn-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 0;
}

.cn-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cn-hero-description {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cn-hero-cta {
    background: white;
    color: #667eea;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cn-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    color: #667eea;
    text-decoration: none;
}

/* Featured Section */
.cn-featured-section {
    background: #f8fafc;
    padding: 60px 20px;
}

.cn-latest-section {
    background: white;
    padding: 60px 20px;
}

.cn-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--cn-text-primary, #1f2937);
}

/* Analysis Grid */
.cn-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

@media (max-width: 1024px) {
    .cn-analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cn-hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .cn-analysis-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cn-hero {
        padding: 60px 20px;
    }

    .cn-hero-title {
        font-size: 28px;
    }

    .cn-hero-description {
        font-size: 16px;
    }
}

/* Analysis Card */
.cn-analysis-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.cn-analysis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.cn-analysis-card.featured {
    border: 2px solid #667eea;
    box-shadow: 0 4px 8px rgba(102,126,234,0.15);
}

.cn-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cn-category {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cn-confidence-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.cn-confidence-badge.high {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.cn-confidence-badge.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.cn-confidence-badge.low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.cn-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
}

.cn-card-title a {
    color: var(--cn-text-primary, #1f2937);
    text-decoration: none;
    transition: color 0.2s;
}

.cn-card-title a:hover {
    color: #667eea;
}

.cn-card-summary {
    font-size: 14px;
    color: var(--cn-text-secondary, #6b7280);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cn-card-summary p {
    margin-bottom: 6px;
}

.cn-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--cn-text-muted, #9ca3af);
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-block;
}

.meta-date {
    margin-left: auto;
}

.cn-card-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.cn-tag {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Category Filter */
.cn-category-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cn-cat-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cn-cat-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.cn-cat-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* Container */
.cn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* No posts message */
.no-posts {
    text-align: center;
    color: #9ca3af;
    font-size: 16px;
    padding: 40px 20px;
}

/* Loading state */
.cn-loading {
    text-align: center;
    padding: 40px;
}

.cn-loading:after {
    content: "로딩중...";
    color: #667eea;
    font-weight: 600;
}
