/* Articles Page Styles */
.articles-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e2e8f0;
    min-height: 100vh;
}

.articles-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.articles-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(237, 96, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.articles-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.articles-hero p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(237, 96, 0, 0.3);
}

.article-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
    font-size: 0.85rem;
}

.article-author i {
    color: #ed6000;
}

.article-category {
    background: rgba(237, 96, 0, 0.1);
    color: #ed6000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 1rem;
}

.article-date {
    display: flex;
    align-items: center;
}

.article-date i {
    margin-left: 0.5rem;
    color: #64748b;
}

.article-title {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    line-height: 1.4;
    color: #f8fafc;
    font-weight: 700;
}

.article-excerpt {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.article-link {
    display: inline-flex;
    align-items: center;
    color: #ed6000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-link i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.article-link:hover {
    color: #ff8c42;
}

.article-link:hover i {
    transform: translateX(5px);
}

/* Loading State */
.loading-articles {
    text-align: center;
    padding: 4rem 0;
    color: #94a3b8;
    font-size: 1.1rem;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 4rem 0;
    color: #94a3b8;
    grid-column: 1 / -1;
}

/* Article Detail Styles */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 6rem;
}

.article-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-detail-category {
    display: inline-block;
    background: rgba(237, 96, 0, 0.1);
    color: #ed6000;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-detail-title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
    line-height: 1.3;
    color: #f8fafc;
    font-weight: 800;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.article-detail-meta span {
    display: flex;
    align-items: center;
}

.article-detail-meta i {
    margin-left: 0.5rem;
    color: #64748b;
}

.article-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.article-detail-content {
    line-height: 1.8;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.article-detail-content p {
    margin-bottom: 1.5rem;
}

.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
    color: #f8fafc;
    margin: 2.5rem 0 1.5rem;
    line-height: 1.3;
}

.article-detail-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.article-detail-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.article-detail-content a {
    color: #ed6000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-detail-content a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

/* Back to Articles Button */
.back-to-articles {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-to-articles i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-to-articles:hover {
    color: #e2e8f0;
}

.back-to-articles:hover i {
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .articles-grid {
        padding: 4rem 2rem;
    }
}

@media (max-width: 992px) {
    .articles-hero h1 {
        font-size: 2.5rem;
    }
    
    .article-detail-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        padding: 3rem 1.5rem;
    }
    
    .article-detail {
        padding: 1.5rem 1.5rem 4rem;
    }
    
    .article-detail-title {
        font-size: 1.8rem;
    }
    
    .article-detail-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .articles-hero {
        padding: 5rem 1.5rem 3rem;
    }
    
    .articles-hero h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .article-card {
        max-width: 100%;
    }
    
    .article-detail-title {
        font-size: 1.6rem;
    }
    
    .article-detail-content {
        font-size: 1rem;
    }
}
