/* News Page Specific Styles */

/* News Hero Section */
.news-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.news-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search and Filter Section */
.search-filter-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.search-box {
    display: flex;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.05);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* Articles Main Section */
.articles-main {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 60vh;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.article-card.hidden {
    display: none;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

/* Category Badges */
.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-trading {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
}

.category-exchange {
    background: linear-gradient(135deg, #059669 0%, #0891B2 100%);
    color: white;
}

.category-tips {
    background: linear-gradient(135deg, #DC2626 0%, #EA580C 100%);
    color: white;
}

.category-security {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    color: white;
}

.category-defi {
    background: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
    color: white;
}

.category-analysis {
    background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%);
    color: white;
}

.article-content h2 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-content h2 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h2 a:hover {
    color: #667eea;
}

.article-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #9ca3af;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content h3 {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.no-results-content p {
    color: #9ca3af;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 8px 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* Active Navigation Link */
.nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filter Animation */
.article-card.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.article-card.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-title {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 100px 0 40px;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .news-subtitle {
        font-size: 1rem;
    }
    
    .search-filter-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-tabs {
        gap: 0.25rem;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 0.875rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 0.875rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .search-box button {
        border-radius: 8px;
    }
    
    .filter-tabs {
        justify-content: center;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-tab {
        flex-shrink: 0;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .search-filter-section,
    .pagination,
    .newsletter-section {
        display: none;
    }
    
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
} 