/* Articles Page Styles */

/* Hero Section */
.articles-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #2F69E2 0%, #1e40af 50%, #3b82f6 100%);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.articles-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroBackground 20s ease-in-out infinite;
}

.articles-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.articles-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

.articles-hero .hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    color: #1f2937;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: scale(1.05);
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background: var(--background-light);
}

.categories-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(47, 105, 226, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 105, 226, 0.2);
    border-color: rgba(47, 105, 226, 0.3);
}

.category-card.active {
    background: linear-gradient(135deg, #2F69E2, #1e40af);
    color: white;
    box-shadow: 0 8px 25px rgba(47, 105, 226, 0.4);
}

.category-card i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.2);
}

.category-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: white;
}

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

.article-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(47, 105, 226, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(47, 105, 226, 0.1), transparent);
    transition: left 0.6s;
}

.article-card:hover::before {
    left: 100%;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(47, 105, 226, 0.2);
    border-color: rgba(47, 105, 226, 0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2F69E2, #1e40af);
    position: relative;
    overflow: hidden;
}

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

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

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 2;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.article-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.article-tag {
    background: rgba(47, 105, 226, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: var(--primary-color);
    color: white;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2F69E2, #1e40af);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(47, 105, 226, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(47, 105, 226, 0.4);
    background: linear-gradient(135deg, #1e40af, #2F69E2);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(47, 105, 226, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 105, 226, 0.1);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 25px;
    background: linear-gradient(135deg, #2F69E2, #1e40af);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 105, 226, 0.3);
}

/* Loading States */
.loading-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.loading-articles i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

.loading-articles p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.no-articles i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-articles p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .articles-hero .hero-description {
        font-size: 1.1rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-input {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .categories-grid {
        gap: 0.8rem;
    }
    
    .category-card {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-text h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .articles-hero .hero-title {
        font-size: 2rem;
    }
    
    .articles-hero .hero-description {
        font-size: 1rem;
    }
    
    .category-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .category-card span {
        font-size: 0.85rem;
    }
    
    .article-content {
        padding: 1.2rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .newsletter-text h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-text p {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes titleGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} 