/**
 * Press Archive Styles
 * Location: plugins/aktd-elements/assets/css/press-archive.css
 * 
 * Styles for the press archive display with year grouping
 * 
 * @package AKT_Elements
 * @since 1.0.0
 */

/* Main Container */
.press-archive {
    padding: 0;
    max-width: 100%;
    margin: 0;
    font-family: "DM Sans", sans-serif;
}

/* Layout (replaces WPBakery row/cols)
   moved to theme global: themes/hoenle-aktd/style.css (.akt-row) */

/* Title */
h2.press-archive__title {
    margin-bottom: 40px!important;
    text-align: left;
    color: var(--aktd-color-font);
    text-transform: uppercase;
}
@media(max-width: 768px) {
    h2.press-archive__title {
        margin-bottom:20px!important;
    }
}

/* Filter Section */
.press-archive__filter-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--aktd-color-font);
    margin-bottom: 10px;
    line-height: 1.5;
}

.press-archive__filter-controls {
    display: block;
}

.press-archive__filter-select {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    background-color: var(--aktd-color-dark-blue-10);
    font-size: 16px;
    font-weight: 500;
    line-height: 27px;
    color: var(--aktd-color-font);
    cursor: pointer;
    transition: border-color 0.3s ease;
    height: 47px;
    align-self: stretch;
    /* Custom arrow: 20px from right */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px 8px;
    padding-right: 52px; /* ensure space for arrow */
}

/* Hide default arrow in IE */
.press-archive__filter-select::-ms-expand {
    display: none;
}

/* Keep select styling constant on interaction */
.press-archive__filter-select:hover,
.press-archive__filter-select:focus,
.press-archive__filter-select:active {
    outline: none;
    border-color: inherit;
    background-color: inherit;
    color: inherit;
}

/* Container */
.press-archive__container {
    position: relative;
    min-height: 100px;
}

/* Items Container */
.press-archive__items {
    padding: 0;
}

/* Year Group */
.press-archive__year-group {
    margin-bottom: 30px;
}

.press-archive__year-title {
    font-weight: 600;
    margin-bottom:10px!important;
    color: var(--aktd-color-font);
}

/* Year Items Container - Two Column Layout */
.press-archive__year-items {
    display: block;
}

/* Individual Item: two-column layout (date | link) */
.press-archive__item {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 10px;
    align-items: start;
    width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Date */
.press-archive__date {
    display: block;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 27px;
    color: var(--aktd-color-font);
    margin-right: 10px;
    min-width: 80px;
    white-space: nowrap;
}

/* Article Link */
.press-archive__link {
    color: var(--aktd-color-dark-blue);
    text-decoration: none !important;
    font-size: 16px;
    font-style: normal;
    line-height: 27px;
    transition: color 0.3s ease;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.press-archive__link:hover {
    color: var(--aktd-color-dark-blue);
    text-decoration: none;
}

.press-archive__link:focus {
    outline: none;
}

/* No Results Message */
.press-archive__no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .press-archive__title {
        margin-bottom: 15px;
    }
    
    .press-archive__filters {
        margin-bottom: 40px;
    }
    
    /* Single column on mobile */
    .press-archive__year-items {
        column-count: 1;
        column-gap: 0;
    }
    
    .press-archive__date {
        display: block;
        margin-bottom: 0;
    }
    
    .press-archive__year-group {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    /* Remove responsive font-size overrides; keep desktop sizes */
}

/* Print Styles */
@media print {
    .press-archive__filters {
        display: none;
    }
    
    .press-archive__year-items {
        column-count: 1;
    }
    
    .press-archive__link {
        color: #000;
        text-decoration: none;
    }
}

/* Accessibility */
.press-archive__filter-select:focus-visible,
.press-archive__link:focus-visible {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .press-archive__filters {
        border: 1px solid #000;
    }
    
    .press-archive__filter-select {
        border: 1px solid #000;
    }
    
    .press-archive__link {
        text-decoration: underline;
    }
}
