/* Articles Styles */

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

.articles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.articles-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c1810;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #8b4513, #d4a574);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.featured-content {
    padding: 2.5rem 2.5rem 2.5rem 0;
}

.article-category {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: #f0e6dc;
    color: #8b4513;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2c1810;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

.read-more-btn:hover {
    gap: 0.75rem;
    color: #6d3410;
}

.read-more-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

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

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 180px;
    background: linear-gradient(135deg, #d4a574, #f0e6dc);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image .image-placeholder i {
    font-size: 2.5rem;
    color: #8b4513;
}

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

.article-content .article-category {
    margin-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.2rem;
    color: var(--dark-color, #2c1810);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
}

.article-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
}

.read-time {
    font-weight: 500;
}

.article-date {
    font-weight: 400;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #2c1810, #4a2c1a);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    color: #2c1810;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.5);
}

.newsletter-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #d4a574;
    color: #2c1810;
}

.btn-primary:hover {
    background: #c8955c;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .articles-container {
        padding: 1rem;
    }
    
    .articles-header h1 {
        font-size: 2rem;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-image {
        min-height: 200px;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-image {
        height: 150px;
    }
    
    .newsletter-section {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading State for Form Submission */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Article Link */
.article-link {
    display: inline-block;
    color: var(--primary-color, #8b4513);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
    padding-top: 0.5rem;
}

.article-link:hover {
    text-decoration: underline;
}

/* Article Image Placeholder */
.article-image-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--light-color, #F5F5DC), #e8d5c0);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured Image Placeholder */
.featured-image-placeholder {
    min-height: 300px;
    background: linear-gradient(135deg, #8b4513, #d4a574);
}

.featured-link {
    display: inline-block;
    color: var(--primary-color, #8b4513);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.featured-link:hover {
    text-decoration: underline;
}

/* Categories Section */
.categories-section {
    margin-top: var(--spacing-xl, 4rem);
}

.categories-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg, 3rem);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md, 2rem);
}

.category-card {
    background: var(--bg-card, white);
    padding: var(--spacing-lg, 3rem) var(--spacing-md, 2rem);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color, #333);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    border-color: var(--primary-color, #8b4513);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    color: var(--dark-color, #2c1810);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.category-card p {
    color: var(--text-light, #666);
    font-size: 0.9rem;
    margin: 0;
}

/* Dark mode for articles */
[data-drkmode="true"] .category-card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

[data-drkmode="true"] .category-card:hover {
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}