/* ==========================================================================
   ARTICLES PAGE - SPECIFIC STYLES
   ========================================================================== */

/* ==========================================================================
   1. HERO SECTION (Articles)
   ========================================================================== */
.articles-hero {
    padding: 10rem 4rem 6rem;
    position: relative;
    overflow: hidden;
    background: var(--dark-gradient);
}

/* Typing Animation Background */
.typing-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--color-purple);
    opacity: 0.05;
    line-height: 1.6;
    white-space: pre;
    overflow: hidden;
}

.typing-text {
    animation: typing 20s steps(40) infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Article Gradient Orbs */
.articles-hero .gradient-orb {
    --article-gradient: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #4facfe 100%);
}

.articles-hero .orb-1 {
    width: 600px;
    height: 600px;
    background: var(--article-gradient);
    top: -20%;
    right: -10%;
}

.articles-hero .orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-gradient);
    bottom: -20%;
    left: -10%;
    animation-direction: reverse;
}

/* ==========================================================================
   3. SEARCH AND FILTERS
   ========================================================================== */
.search-filter-container {
    display: flex;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    color: var(--color-light);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-purple);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--color-gray);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--color-gray);
}

.filter-dropdown {
    position: relative;
}

.filter-button {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    padding: 1.25rem 2rem;
    border-radius: 60px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.filter-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-purple);
}

/* ==========================================================================
   4. FEATURED ARTICLE
   ========================================================================== */
.featured-section {
    padding: 6rem 4rem;
    position: relative;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.featured-article:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.featured-image {
    height: 500px;
    background: var(--article-gradient);
    position: relative;
    overflow: hidden;
}

.featured-image::after {
    content: '📝';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    opacity: 0.2;
}

.featured-content {
    padding: 3rem;
}

.featured-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray);
}

.featured-category {
    background: var(--primary-gradient);
    color: var(--color-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.featured-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.read-more-btn {
    background: var(--primary-gradient);
    color: var(--color-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ==========================================================================
   5. ARTICLES GRID
   ========================================================================== */
.articles-section {
    padding: 6rem 4rem;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
}

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

.article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.article-thumbnail {
    height: 200px;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.article-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

.reading-time {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 10;
}

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

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.author-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.article-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    color: var(--color-gray);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn:hover {
    color: var(--color-light);
}

/* ==========================================================================
   6. NEWSLETTER CTA
   ========================================================================== */
.newsletter-section {
    padding: 6rem 4rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(116, 75, 162, 0.1) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--color-light);
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-purple);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-submit {
    background: var(--primary-gradient);
    color: var(--color-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ==========================================================================
   7. LOAD MORE
   ========================================================================== */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-light);
    padding: 1rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

/* ==========================================================================
   8. RESPONSIVE - ARTICLES SPECIFIC
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 300px;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .articles-hero {
        padding: 8rem 2rem 4rem;
    }

    .search-filter-container {
        flex-direction: column;
        gap: 1rem;
    }

    .featured-content {
        padding: 2rem;
    }

    .featured-title {
        font-size: 2rem;
    }

    .articles-section,
    .newsletter-section {
        padding: 4rem 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}