/* News Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background: #f8fafc;
    margin-top: 70px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #5a67d8;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #999;
    font-weight: bold;
}

/* News Hero */
.news-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.news-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* News Filters */
.news-filters {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-tab {
    padding: 10px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-tab.active,
.filter-tab:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-bar {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-btn:hover {
    background: #5a67d8;
    transform: translateY(-50%) scale(1.05);
}

/* News Content */
.news-content {
    padding: 60px 0;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.news-category {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category.trading { background: #667eea; }
.news-category.exchange { background: #059669; }
.news-category.tips { background: #dc2626; }
.news-category.security { background: #7c3aed; }
.news-category.defi { background: #ea580c; }
.news-category.analysis { background: #0891b2; }

.news-date,
.news-read-time {
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-date::before {
    content: "📅";
    font-size: 0.8rem;
}

.news-read-time::before {
    content: "⏱️";
    font-size: 0.8rem;
}

.news-card h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

.news-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card h3 a:hover {
    color: #667eea;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.read-more:hover {
    color: #5a67d8;
    transform: translateX(5px);
}

.read-more::after {
    content: "→";
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
}

.page-btn:hover,
.page-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Featured Article */
.featured-article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.featured-article .news-card-image {
    height: 300px;
}

.featured-article .news-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-article .news-excerpt {
    font-size: 1.1rem;
    -webkit-line-clamp: 4;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Loading State */
.news-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-article .news-card-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 40px 0;
    }
    
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .filter-tabs::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .filter-tabs::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 2px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .search-input {
        padding: 10px 45px 10px 15px;
        font-size: 14px;
    }

    .search-btn {
        width: 35px;
        height: 35px;
        right: 3px;
    }

    .news-card-content {
        padding: 1.25rem;
    }

    .featured-article .news-card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-hero h1 {
        font-size: 1.75rem;
    }
    
    .news-hero p {
        font-size: 1rem;
    }

    .news-filters {
        padding: 30px 0;
    }

    .filter-tabs {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .news-content {
        padding: 40px 0;
    }

    .news-card h3 {
        font-size: 1.1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
    }

    .breadcrumb {
        padding: 15px 0;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .breadcrumb,
    .news-filters,
    .pagination,
    .newsletter,
    .footer,
    .back-to-top {
        display: none !important;
    }
    
    .news-hero {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .news-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .news-card-image {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .news-content {
        background: #1a202c;
    }
    
    .news-card {
        background: #2d3748;
    }
    
    .news-card h3,
    .news-card h3 a {
        color: #e2e8f0;
    }
    
    .news-excerpt {
        color: #a0aec0;
    }
    
    .search-input {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .filter-tab {
        background: #2d3748;
        border-color: #4a5568;
        color: #a0aec0;
    }
    
    .page-btn {
        background: #2d3748;
        border-color: #4a5568;
        color: #a0aec0;
    }
} 