/* Articles Page Styles */

/* Header Section */
.articles-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.articles-header .container {
    max-width: 800px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Articles Content */
.articles-content {
    padding: 80px 0;
    background: #fafbfc;
}

.articles-content .container {
    max-width: 1200px;
}

/* Featured Article */
.featured-article {
    margin-bottom: 80px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.article-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}

.article-card.featured .article-image {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff6b35 100%);
}

.article-card.featured .article-content {
    padding: 48px;
}

/* Article Image */
.article-image {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff6b35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.tech-illustration {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.tech-illustration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.code-pattern {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 50%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.1) 50%, transparent 50%);
    background-size: 4px 4px;
    border-radius: 8px;
}

/* Different illustration styles for articles */
.tech-illustration.stats::before {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
}

.tech-illustration.regression::before {
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(0deg) skew(-10deg);
}

.tech-illustration.workflow::before {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 8px;
}

.tech-illustration.testing::before {
    width: 40px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.tech-illustration.correlation::before {
    width: 100px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transform: translate(-50%, -50%) rotate(0deg);
}

.tech-illustration.architecture::before {
    width: 90px;
    height: 60px;
    background: 
        linear-gradient(to right, rgba(255, 255, 255, 0.2) 30%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.2) 70%);
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Article Content */
.article-content {
    padding: 32px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #6c757d;
}

.article-category {
    color: var(--primary-orange);
    font-weight: 600;
}

.article-read-time {
    color: #9ca3af;
}

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

.article-card.featured .article-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

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

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

.article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 24px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-orange);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.article-link:hover {
    gap: 12px;
    color: #e55a00;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.article-card:not(.featured) {
    display: flex;
    flex-direction: column;
}

.article-card:not(.featured) .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Coming Soon Styling */
.article-card.coming-soon {
    opacity: 0.7;
    pointer-events: none;
}

.article-card.coming-soon .article-image {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.article-card.coming-soon .article-title {
    color: #6c757d;
}

.article-card.coming-soon .article-excerpt {
    color: #9ca3af;
}

.article-card.coming-soon .tag {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.newsletter-card p {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.newsletter-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #e55a00;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    .articles-content {
        padding: 60px 0;
    }
    
    .featured-article {
        margin-bottom: 60px;
    }
    
    .article-card.featured {
        grid-template-columns: 1fr;
    }
    
    .article-card.featured .article-image {
        height: 240px;
    }
    
    .article-card.featured .article-content {
        padding: 32px;
    }
    
    .article-card.featured .article-title {
        font-size: 1.75rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 60px;
    }
    
    .newsletter-card {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .newsletter-card h3 {
        font-size: 1.75rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        margin: 0 16px;
    }
    
    .newsletter-card {
        margin: 0 16px;
        padding: 24px 16px;
    }
}