/* Container */
.container {
    max-width: 1200px;
    width: 95%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    position: relative;
}

/* Articles Header */
.articles-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    animation: fadeEffect 1s ease-in-out;
}

.articles-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.articles-header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #FFBE55, transparent);
}

.articles-header p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    animation: fadeEffect 1.5s ease-in-out;
}

/* Article Card */
.article-card {
    background: #27272A;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    border: 2px solid transparent;
}

.article-card:hover {
    /*transform: translateY(-5px);*/
    border-color: #FFBE55;
    background: #323232;
}

/* Article Image */
.article-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, #27272A, transparent);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

/* Article Content */
.article-content {
    padding: 1.5rem;
}

.article-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 190, 85, 0.1);
    color: #FFBE55;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 190, 85, 0.2);
    transition: all 0.3s ease;
}

.article-card:hover .article-tag {
    background: #FFBE55;
    color: #18181B;
}

.article-content h2 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover .article-content h2 {
    color: #FFBE55;
}

.article-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Article Meta */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more {
    color: #FFBE55;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: "→";
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .articles-header {
        margin-bottom: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-image {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .articles-header {
        margin-bottom: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
    
    .articles-header h1 {
        font-size: 2rem;
    }
    
    .articles-header p {
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .article-content {
        padding: 1.2rem;
    }
    
    .article-content h2 {
        font-size: 1.2rem;
    }
    
    .article-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .article-meta {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    
    .articles-header {
        padding: 1rem 0.5rem;
    }
    
    .articles-header h1 {
        font-size: 1.8rem;
    }
    
    .articles-header p {
        font-size: 0.9rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .article-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
}

/* Loading Animation for Images */
.article-image.loading {
    animation: shimmer 1.5s infinite;
    background: linear-gradient(
        90deg,
        #27272A 0%,
        #323232 50%,
        #27272A 100%
    );
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
