/**
 * Eau News Archive & Single - Frontend Styles
 *
 * @package EauSystem
 * @since 1.80.0
 */

/* ==============================
   Archive: Container
   ============================== */
.eau-news-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==============================
   Archive: Filters (Find a College pattern)
   ============================== */
.eau-news-filters {
    margin-bottom: 24px;
    padding: 25px 30px;
    background: #fff;
    border: 1px solid #EDEBEB;
    border-radius: 8px;
}

.eau-news-filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.eau-news-filter-select-wrap {
    flex: 0 0 260px;
}

.eau-news-filter-search-wrap {
    flex: 1;
}

.eau-news-filter-select,
.eau-news-filter-search {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #333;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.eau-news-filter-select:focus,
.eau-news-filter-search:focus {
    border-color: #1976D2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.eau-news-archive-container .eau-news-filter-btn,
.eau-news-archive-container button.eau-news-filter-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 28px;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1976D2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.eau-news-archive-container .eau-news-filter-btn:hover {
    background: #1565C0;
}

.eau-news-archive-container .eau-news-filter-clear {
    flex-shrink: 0;
    height: 48px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background: transparent;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eau-news-archive-container .eau-news-filter-clear:hover {
    color: #374151;
    border-color: #9CA3AF;
    background: #F3F4F6;
}

/* Results count */
.eau-news-results-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6B7280;
}

/* ==============================
   Archive: Grid
   ============================== */
.eau-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .eau-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .eau-news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Archive: Card
   ============================== */
.eau-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.eau-news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.eau-news-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.eau-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.eau-news-card:hover .eau-news-card-image img {
    transform: scale(1.05);
}

.eau-news-card-body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eau-news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
}

.eau-news-card-category {
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Card title: match Upcoming Events pattern (24px) */
.eau-news-card-title {
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1.3;
    color: #222 !important;
    margin: 0 0 8px;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: calc(3 * 1.3em);
}

.eau-news-card-title a {
    color: inherit;
    text-decoration: none;
}

.eau-news-card-title a:hover {
    color: #2563eb;
}

.eau-news-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eau-news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    margin-top: auto;
}

.eau-news-card-link:hover {
    text-decoration: underline;
}

.eau-news-card-link i,
.eau-news-card-link svg {
    width: 16px;
    height: 16px;
}

/* ==============================
   Archive: Loading & Empty
   ============================== */
.eau-news-loading,
.eau-news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.eau-news-loading i,
.eau-news-loading svg,
.eau-news-empty i,
.eau-news-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: #9ca3af;
}

.eau-news-empty p {
    margin: 8px 0 0;
    font-size: 15px;
}

/* ==============================
   Archive: Pagination (Find a College pattern)
   ============================== */
.eau-news-archive-container .eau-fc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.eau-news-archive-container .eau-fc-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.eau-news-archive-container .eau-fc-page-link:hover {
    background: #f3f4f6;
    color: #1976D2;
}

.eau-news-archive-container .eau-fc-page-current {
    background: #1976D2;
    color: #fff;
    border-color: #1976D2;
    cursor: default;
}

.eau-news-archive-container .eau-fc-page-current:hover {
    background: #1565C0;
    color: #fff;
}

.eau-news-archive-container .eau-fc-prev,
.eau-news-archive-container .eau-fc-next {
    padding: 0 14px;
    font-weight: 600;
    color: #1976D2;
}

.eau-news-archive-container .eau-fc-prev:hover,
.eau-news-archive-container .eau-fc-next:hover {
    background: #e3f2fd;
}

.eau-news-archive-container .eau-fc-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    color: #9CA3AF;
}

/* ==============================
   Responsive: Filters
   ============================== */
@media (max-width: 1024px) {
    .eau-news-filter-form {
        flex-wrap: wrap;
    }

    .eau-news-filter-select-wrap {
        flex: 1 1 200px;
    }

    .eau-news-filter-search-wrap {
        flex: 1 1 200px;
    }
}

@media (max-width: 768px) {
    .eau-news-filters {
        padding: 20px;
    }

    .eau-news-filter-form {
        flex-direction: column;
    }

    .eau-news-filter-select-wrap,
    .eau-news-filter-search-wrap {
        flex: 1 1 100%;
        width: 100%;
    }

    .eau-news-filter-btn,
    .eau-news-filter-clear {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .eau-news-card-title {
        font-size: 18px !important;
        font-weight: 400 !important;
    }
}

@media (max-width: 480px) {
    .eau-news-archive-container .eau-fc-pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* ==============================
   Single: Container
   ============================== */
.eau-news-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.eau-news-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #6b7280;
}

.eau-news-single-meta i,
.eau-news-single-meta svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.eau-news-single-category {
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.eau-news-single-image {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.eau-news-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.eau-news-single-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 40px;
}

.eau-news-single-content h2 {
    font-size: 22px;
    margin: 32px 0 12px;
}

.eau-news-single-content h3 {
    font-size: 18px;
    margin: 24px 0 8px;
}

.eau-news-single-content p {
    margin: 0 0 16px;
}

.eau-news-single-content a {
    color: #2563eb;
}

.eau-news-single-content ul,
.eau-news-single-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

/* ==============================
   Single: Navigation
   ============================== */
.eau-news-single-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.eau-news-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    max-width: 200px;
}

.eau-news-nav-link:hover {
    color: #2563eb;
}

.eau-news-nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eau-news-nav-link i,
.eau-news-nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
