/* Archive Filter Section Improvements */

/* Heading styles */
.filter-group label {
    display: block;
    margin-bottom: 12px;
    color: #DECA9C;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Optima', sans-serif;
}

/* Filter controls improvement */
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1A2A42;
    padding: 30px 35px;
    border-left: 3px solid #DECA9C;
    margin-bottom: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-controls:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.filter-sections {
    display: flex;
    gap: 40px;
}

.filter-group {
    margin: 0;
}

/* Fix for the select boxes - increase font size */
select {
    padding: 12px 15px;
    background-color: #121E30;
    border: 1px solid #1E293B;
    color: #FFFFFF;
    font-family: 'EB Garamond', serif;
    min-width: 220px;
    font-size: 16px;
    border-radius: 0;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Reset button styles */
#reset-filters {
    background-color: transparent;
    color: #DECA9C;
    border: 1px solid #DECA9C;
    padding: 12px 30px;
    font-family: 'Optima', sans-serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#reset-filters:hover {
    background-color: rgba(222, 202, 156, 0.1);
    color: #FFFFFF;
    border-color: #FFFFFF;
}

/* Year separator headings - increase size */
.year-separator {
    font-family: 'Optima', sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
    color: #DECA9C;
    margin: 60px 0 35px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #1E293B;
    position: relative;
    display: flex;
    align-items: center;
}


.year-separator:first-child {
    margin-top: 0;
}

/* Article styling */
.archive-article {
    background-color: #1A2A42;
    border-left: 3px solid #DECA9C;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.archive-article::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 42, 66, 0) 0%, rgba(26, 42, 66, 0) 85%, rgba(26, 42, 66, 0.5) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.archive-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.archive-article:hover::after {
    opacity: 1;
}

.archive-article a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 35px 40px;
    position: relative;
    z-index: 1;
}

.archive-article h3 {
    font-family: 'Optima', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 15px 0;
    color: #FFFFFF;
    letter-spacing: 1px;
    line-height: 1.4;
    transition: color 0.3s ease;
    max-width: 90%;
}

.archive-article:hover h3 {
    color: #DECA9C;
}

/* FIX: Properly align and style the article meta information */
.archive-article .article-meta {
    color: #DECA9C;
    font-style: italic;
    margin: 0 0 20px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Ensure left alignment */
    width: 100%; /* Take full width */
}

.archive-article .article-meta::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: #DECA9C;
    margin-right: 15px;
    vertical-align: middle;
    opacity: 0.6;
    flex-shrink: 0; /* Prevent the line from shrinking */
}

.article-excerpt {
    color: #E2E8F0;
    line-height: 1.7;
    margin: 0;
    font-size: 16px;
    max-width: 90%;
}

/* Arrow indicator on hover */
.archive-article a::after {
    content: '→';
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #DECA9C;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.archive-article:hover a::after {
    opacity: 1;
    transform: translate(5px, -50%);
}

/* No results styling */
.no-results {
    background-color: #1A2A42;
    padding: 50px 40px;
    text-align: center;
    border-left: 3px solid #DECA9C;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.no-results p {
    color: #E2E8F0;
    font-size: 18px;
    margin: 0;
}

.no-results a {
    color: #DECA9C;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: normal;
}

.no-results a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .filter-sections {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
    }
    
    select {
        width: 100%;
    }
    
    #reset-filters {
        width: 100%;
        margin-top: 10px;
    }
    
    .archive-article a {
        padding: 25px 30px;
    }
    
    .archive-article h3 {
        font-size: 20px;
        max-width: 100%;
    }
    
    .article-excerpt {
        max-width: 100%;
    }
    
    .archive-article a::after {
        display: none;
    }
    
    .year-separator {
        margin: 40px 0 25px 0;
        font-size: 18px;
    }
}

/* Mobile fixes for article meta and author names */
@media (max-width: 768px) {
    /* Prevent long author names from wrapping */
    .archive-article .article-meta {
        font-size: 14px; /* Slightly smaller font on mobile */
        margin: 5px 0 20px 0; /* Add more space above and below meta info */
    }
    
    /* Give more space for longer names */
    .archive-article a {
        padding: 25px 25px; /* Slightly less horizontal padding */
    }
    
/* Fix for the line above author name on mobile */
@media (max-width: 768px) {
    /* Adjust the line above the author name */
    .archive-article .article-meta::before {
        margin-bottom: 8px; /* Add space between line and text */
        position: relative;
        top: -4px; /* Move the line up slightly */
    }
    
    /* Add more space around the meta information */
    .archive-article .article-meta {
        margin: 0 0 20px 0;
        padding-top: 8px; /* Add padding above the meta section */
        align-items: flex-start; /* Align items to top instead of center */
    }
}