/* Styles for List, News, and Show pages */

.content-section {
    padding: 80px 0;
    min-height: 60vh;
}

/* Page Headers */
.page-header {
    padding: 40px 0 80px;
    background: var(--gradient-hero);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 3.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Article List (list.html) */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.article-item {
    display: flex;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.article-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.article-image {
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-item:hover .article-image::after {
    opacity: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.article-content .date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.9rem;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.article-content h3 a {
    color: var(--text-heading);
}

.article-content h3 a:hover {
    color: var(--primary);
}

.article-content p {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--bg-card);
    color: var(--text-dark);
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-3px);
}

/* Article Detail (news.html and show.html) */
.article-detail {
    max-width: 950px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-light);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 28px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 35px 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.article-body h2 {
    font-size: 2.2rem;
    margin: 50px 0 25px;
    color: var(--text-heading);
    font-weight: 700;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.back-link:hover {
    color: var(--primary-hover);
}

/* Show Content Adjustments */
.show-content {
    text-align: center;
}

.show-content h2 {
    color: var(--accent);
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Media Queries */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 0 60px;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        flex: none;
        height: 280px;
    }

    .article-detail {
        padding: 35px 25px;
    }

    .page-header h1 {
        font-size: 2.4rem;
    }

    .article-content {
        padding: 25px;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }
}