/* 팜디뉴스 페이지 스타일 */

.section {
    padding: 0 0 90px;
}

/* ===== 히어로 섹션 오버라이드 ===== */
.hero-section {
    min-height: auto !important;
    padding: 120px 0 60px;
}

/* ===== 404 에러 페이지 ===== */
.error-content {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 120px;
    margin-bottom: 24px;
}

.error-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.error-text {
    font-size: 18px;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== 뉴스 히어로 섹션 ===== */
.news-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-hero {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== 뉴스 메타 정보 ===== */
.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background-color: #15b981;
}

.badge-pinned {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: var(--error-light);
    color: var(--error);
}

.news-date,
.news-views {
    font-size: 14px;
    color: #475569;
}

/* ===== 필터 섹션 ===== */
.news-filter-section {
    padding-top: 0;
    padding-bottom: 40px;
}

.news-filters {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: box-shadow 0.3s ease;
}



@media (min-width: 1024px) {
    .news-filters {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }
}

.filter-row {
    flex: 1;
}

.filter-group {
    width: 100%;
}

.search-group {
    min-width: 320px;
}

@media (min-width: 1024px) {
    .search-group {
        max-width: 400px;
    }
}

.filter-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.filter-group:hover .filter-label {
    color: #059669;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    cursor: pointer;
}

.category-btn:hover {
    background: #f0fdf4;
    color: #059669;
    border-color: #059669;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #059669;
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.category-btn.active:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
}

/* 검색 폼 */
.search-form {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #111827;
}

.search-input:hover {
    background: #ffffff;
    border-color: #d1d5db;
}

.search-input:focus {
    outline: none;
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-form .btn-primary {
    white-space: nowrap;
    transition: all 0.3s ease;
}

.search-form .btn-primary:hover {
    transform: translateY(-2px);
}

/* ===== 뉴스 리스트 ===== */
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card-link:hover .news-card {
    transform: translateY(-4px);
}

.news-thumbnail {
    width: 280px;
    flex-shrink: 0;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    flex: 1;
    padding: 32px;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 35px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 35px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.news-card-link:hover .news-link {
    gap: 12px;
}

/* ===== 페이지네이션 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== 빈 상태 ===== */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-tertiary);
}

/* ===== 상세 페이지 ===== */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-article {
    background: white;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 60px;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.05);
}

.news-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.news-summary p {
    font-size: 17px;
    text-align: center;
    background: linear-gradient(135deg, rgb(13 80 107) 0%, rgb(45 153 89) 50%, rgb(173 235 148) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.7;
    margin: 0;
}

.news-content {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #475569;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.news-content h1,
.news-content h2,
.news-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.news-content h1 {
    font-size: 1.75rem;
}

.news-content h2 {
    font-size: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-content a {
    color: var(--primary);
    text-decoration: underline;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.news-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #475569;
    font-style: italic;
}

.news-author {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.author-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== 관련 소식 ===== */
.related-news {
    margin-bottom: 60px;
}

.related-news .section-title {
    font-size: 28px;
    margin-bottom: 32px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-news-card {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.related-news-card:hover {
    transform: translateY(-4px);
}

.related-news-card .category-badge {
    margin-bottom: 12px;
}

.related-news-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ===== 액션 버튼 ===== */
.news-actions {
    display: flex;
    justify-content: center;
    text-align: center;
}

/* ===== 모바일 최적화 ===== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .news-filter-section {
        padding-bottom: 30px;
    }

    .news-filters {
        padding: 28px 24px;
        flex-direction: column;
        gap: 28px;
    }

    .filter-row {
        flex: 1;
    }

    .search-group {
        min-width: auto;
    }

    .filter-label {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input {
        margin-bottom: 12px;
    }

    .btn-primary {
        width: 100%;
    }

    .news-card {
        flex-direction: column;
    }

    .news-thumbnail {
        width: 100%;
        height: 200px;
    }

    .news-card-content {
        padding: 24px;
    }

    .news-title {
        font-size: 20px;
    }

    .news-article {
        padding: 24px;
    }

    .news-detail-hero .page-title {
        font-size: 32px;
    }

    .news-content {
        font-size: 15px;
    }

    .news-content h1 {
        font-size: 1.5rem;
    }

    .news-content h2 {
        font-size: 1.25rem;
    }

    .news-content h3 {
        font-size: 1.125rem;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 36px;
    }
}