/* Articles List Page Styles */

.articles-page {
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.articles-hero {
    background: linear-gradient(135deg, #ff6f61 0%, #f57c00 100%);
    color: white;
    padding: 6rem 0 4rem 0;
    text-align: center;
}

.articles-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    color: white;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2a2a2a;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

/* Featured Carousel */
.articles-featured {
    padding: 4rem 0;
    background: #f5f5f5;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide-content {
    position: relative;
    background: white;
    padding: 3rem 4rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6f61 0%, #f57c00 100%);
    opacity: 0.1;
    z-index: 0;
}

.carousel-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.1) 0%, rgba(245, 124, 0, 0.1) 100%);
}

.carousel-slide-text {
    position: relative;
    z-index: 1;
}

.carousel-slide-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.carousel-slide-date {
    font-weight: 500;
}

.carousel-slide-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.carousel-slide-tags .tag {
    background: rgba(255, 111, 97, 0.1);
    color: #ff6f61;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.carousel-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #2a2a2a;
}

.carousel-slide-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.carousel-slide-title a:hover {
    color: #ff6f61;
}

.carousel-slide-teaser {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.carousel-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6f61;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.carousel-slide-link:hover {
    gap: 0.75rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    pointer-events: all;
    color: #2a2a2a;
}

.carousel-btn:hover {
    background: #ff6f61;
    color: white;
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-indicator.active {
    background: #ff6f61;
    width: 24px;
    border-radius: 6px;
}

.carousel-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Latest Articles Section */
.articles-latest {
    padding: 4rem 0;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #ff6f61;
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.article-card-date {
    font-weight: 500;
}

.article-card-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-card-tags .tag {
    background: rgba(255, 111, 97, 0.1);
    color: #ff6f61;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #2a2a2a;
    line-height: 1.3;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-title a:hover {
    color: #ff6f61;
}

.article-card-teaser {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6f61;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.article-card-link:hover {
    gap: 0.75rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #ff6f61;
    color: white;
    border-color: #ff6f61;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.pagination-page {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.pagination-page:hover {
    background: #f5f5f5;
    border-color: #ff6f61;
}

.pagination-page.active {
    background: #ff6f61;
    color: white;
    border-color: #ff6f61;
}

.pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #666;
}

/* Loading and Error States */
.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.loading-placeholder.error {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-hero {
        padding: 2rem 0;
    }

    .articles-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .articles-featured,
    .articles-latest {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .carousel-container {
        padding: 0 1.5rem;
    }

    .carousel-slide-content {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }

    .carousel-slide-title {
        font-size: 1.75rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .carousel-container {
        padding: 0 1rem;
    }

    .carousel-controls {
        padding: 0 0.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

