/* Journal Filter Styles */

.editorial-journals-filter {
    margin-bottom: 40px;
    padding: 18px 0 10px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.filter-buttons-container {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #dbeafe;
    padding-bottom: 12px;
    width: 100%;
}

.sinta-filter-panel {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.sinta-filter-panel.is-hidden {
    display: none;
}

/* Scopus Q1–Q4 sub-filter panel — same behaviour as Sinta */
.scopus-filter-panel {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.scopus-filter-panel.is-hidden {
    display: none;
}

.subject-filter-panel {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.subject-filter-panel.is-hidden {
    display: none;
}

.filter-select {
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f0f7ff;
    color: #0f172a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.filter-select:hover,
.filter-select:focus {
    color: #1e40af;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.filter-btn {
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: none;
    outline: none;
    white-space: nowrap;
    position: relative;
}

.filter-btn:hover {
    color: #2563eb;
}

.filter-btn-active {
    color: #2563eb;
}

.filter-btn-active:hover {
    color: #1e40af;
}

.filter-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}

.filter-btn-active::after {
    background: #2563eb;
}

/* Loading State Animation */
@keyframes shimmer {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.editorial-journals-grid.loading {
    opacity: 0.6;
    animation: shimmer 0.8s ease-in-out;
    pointer-events: none;
}

.filter-btn:disabled,
.filter-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Journal Card Filter Animation */
.editorial-journal-card {
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.editorial-journal-card.hidden-filter {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    position: absolute;
    pointer-events: none;
}

/* No Results Message */
.no-results-filter {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 16px;
}

.no-results-filter svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.4;
    color: #cbd5e1;
}

.filter-results-info {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: 0;
    font-style: normal;
    font-weight: 500;
}

.filter-results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 12px;
    margin: 0 4px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.26);
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-weight: 600;
}

.editorial-journal-body {
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.editorial-journal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.journal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0px;
    text-transform: uppercase;
    line-height: 1;
    transition: all 0.2s ease;
}

.journal-badge-scopus {
    color: #1e40af;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.journal-badge-scopus:hover {
    background: #bfdbfe;
    border-color: #7dd3fc;
}

.journal-badge-doaj {
    color: #047857;
    background: #d1fae5;
    border-color: #a7f3d0;
}

.journal-badge-doaj:hover {
    background: #a7f3d0;
    border-color: #6ee7b7;
}

.journal-badge-sinta {
    color: #6d28d9;
    background: #ede9fe;
    border-color: #ddd6fe;
}

.journal-badge-sinta:hover {
    background: #ddd6fe;
    border-color: #c4b5fd;
}

.journal-badge-garuda {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.journal-badge-garuda:hover {
    background: #fde68a;
    border-color: #fcd34d;
}

.journal-badge-subject {
    color: #1e40af;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.journal-badge-subject:hover {
    background: #bfdbfe;
    border-color: #7dd3fc;
}

.journal-badge-wos {
    color: #0f4c81;
    background: #dce9f9;
    border-color: #b3cef0;
}

.journal-badge-wos:hover {
    background: #b3cef0;
    border-color: #80aee3;
}

.journal-badge-ebsco {
    color: #065f46;
    background: #d1fae5;
    border-color: #6ee7b7;
}

.journal-badge-ebsco:hover {
    background: #a7f3d0;
    border-color: #34d399;
}

.journal-badge-copernicus {
    color: #7c3aed;
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.journal-badge-copernicus:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .editorial-journals-filter {
        gap: 12px;
    }
    
    .filter-buttons-container {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 14px;
    }
    
    .filter-btn {
        padding: 0 0 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .editorial-journals-filter {
        padding: 12px 0 6px;
        gap: 10px;
    }
    
    .filter-buttons-container {
        gap: 16px;
    }
    
    .filter-btn {
        padding: 0 0 10px;
        font-size: 13px;
    }
}
