/* Blog Specific Styles */
/* START NEW QUOTE STYLE */
.interstitial-quote {
    font-family: var(--font-family-body); /* Body font for readability */
    font-style: italic;
    font-size: 0.9em; /* Small text as requested */
    text-align: center;
    margin: 60px auto;
    max-width: 700px;
    color: var(--color-primary);
    opacity: 0.8; /* Slightly subdued */
}

/* START SEARCH INPUT STYLES */
.search-container {
    display: flex;
    justify-content: center; /* Center the search elements */
    align-items: center;
    margin-bottom: 40px; /* Space below the search elements */
    gap: 10px; /* Space between icon and input */
}

.search-icon-button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--color-primary);
    padding: 8px; /* Padding around the icon */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex; /* To center SVG */
    align-items: center;
    justify-content: center;
}
.search-icon-button:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.magnifying-glass-icon {
    width: 20px; /* Size of the icon */
    height: 20px;
    fill: currentColor; /* Inherit color from parent button */
}

.search-input {
    background-color: var(--color-secondary);
    border: 1px solid var(--border-color);
    color: var(--color-primary);
    padding: 8px 15px;
    font-family: var(--font-family-body);
    font-size: 1em;
    width: 300px; /* Fixed width for the input box */
    max-width: 80%; /* Ensure responsiveness */
    transition: all 0.3s ease;
}
[data-theme="light"] .search-input {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}
/* END SEARCH INPUT STYLES */

.featured-heading {
    font-size: 0.9em; /* A more aggressive scale for small screens */
}

.featured-article {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    gap: 30px;
    margin-bottom: 60px;
    border: 1px solid var(--border-color); /* Consistent border */
    padding: 30px;
}

.featured-article-image {
    width: 100%;
    height: auto;
    max-height: 400px; /* Limit height for large images */
    object-fit: cover;
    border: 1px solid var(--border-color); /* Consistent border */
}

.featured-article-content h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 2.2em;
}

.article-meta {
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 15px;
}

.article-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 5px 10px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
}
[data-theme="light"] .article-tag {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.article-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}
[data-theme="light"] .article-card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.article-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.article-card-title {
    font-family: var(--font-family-header);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.article-card-excerpt {
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}
/* END BLOG SPECIFIC STYLES */

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 30px; /* 30px from the bottom */
    right: 30px; /* 30px from the right */
    z-index: 99; /* Ensure it's above other content */
    border: 1px solid var(--border-color); /* Consistent border */
    background-color: var(--color-secondary); /* Background matches theme */
    color: var(--color-primary); /* Text color matches theme */
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px; /* Slightly rounded corners */
    font-size: 24px; /* Large arrow */
    line-height: 1;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#scrollToTopBtn:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* Footer - Consistent with Société il Noir homepage */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-body); /* Uses updated body font */
}

/* Responsive Design - Consistent with Société il Noir homepage */
@media (min-width: 769px) {
    .featured-article {
        flex-direction: row; /* Side-by-side on larger screens */
        align-items: flex-start;
    }
    .featured-article-image {
        width: 50%; /* Take half width */
        flex-shrink: 0; /* Prevent shrinking */
    }
    .featured-article-content {
        width: 50%; /* Take other half */
        padding-left: 30px; /* Space between image and text */
    }
}

@media (max-width: 768px) {
    /* Blog specific responsive adjustments */
    .featured-article-content {
        padding-left: 0; /* Remove padding on small screens */
    }
    .articles-list {
        grid-template-columns: 1fr; /* Stack articles on small screens */
    }
}

/* Landscape/Portrait adaptation (subtle changes) - Consistent with Société il Noir homepage */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .container { padding: 10px; }
    /* START NAV LINKS RESPONSIVE */
    .header-nav {
        flex-direction: row; /* Keep horizontal in landscape */
        gap: 15px;
        margin-top: 0;
        margin-bottom: 0;
    }
    /* END NAV LINKS RESPONSIVE */
    .articles-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid for narrow landscape */
    }
    .featured-article {
        flex-direction: row; /* Keep side-by-side in landscape */
    }
    .featured-article-image, .featured-article-content {
        width: 50%;
    }
    .featured-article-content {
        padding-left: 15px; /* Reduce padding for narrow landscape */
    }
}

@media screen and (orientation: portrait) and (max-width: 500px) {
    /* Specific adjustments for smaller portrait views */
    .articles-list {
        gap: 15px;
    }
    .article-card {
        padding: 15px;
    }
    .featured-article {
        padding: 15px;
    }
}
