/* ==========================================================================
   Journal Public Pages Styles
   ========================================================================== */

/* Hero Sections
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 3rem 0;
}

.hero-section--large {
    padding: 4rem 0 3rem;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Badge Styles
   ========================================================================== */

.badge-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge--doaj {
    background: #28a745;
    color: white;
}

.badge--scopus {
    background: #17a2b8;
    color: white;
}

.badge--impact-factor,
.badge--license {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.badge--small {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
}

.badge--subject {
    padding: 0.5rem 1.2rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.95rem;
}

.badge--subject-small {
    padding: 0.3rem 0.8rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 15px;
    font-size: 0.85rem;
}

.badge--if {
    background: #6c757d;
    color: white;
}

/* Action Buttons
   ========================================================================== */

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: white;
    color: #1a1a2e;
}

.btn--outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn--dark {
    background: #1a1a2e;
    color: white;
}

.btn--outline-dark {
    background: white;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
}

.btn--danger {
    background: #dc3545;
    color: white;
    border: none;
}

/* Content Sections
   ========================================================================== */

.content-section {
    padding: 3rem 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.section-heading {
    color: #1a1a2e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #1a1a2e;
    padding-bottom: 0.5rem;
}

.section-heading--medium {
    font-size: 1.5rem;
    border-bottom: none;
}

.section-heading--small {
    font-size: 1.3rem;
    text-align: center;
}

.section-content {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.section-block {
    margin-bottom: 3rem;
}

/* Sidebar / Metadata Panel
   ========================================================================== */

.metadata-panel {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 2rem;
}

.metadata-grid {
    display: grid;
    gap: 1.5rem;
}

.metadata-item {
}

.metadata-label {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.metadata-value {
    color: #1a1a2e;
    font-size: 1rem;
}

.metadata-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.metadata-button-grid {
    display: grid;
    gap: 0.8rem;
}

.metadata-button {
    padding: 0.7rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: block;
}

.metadata-button--primary {
    background: #1a1a2e;
    color: white;
}

.metadata-button--secondary {
    background: white;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
}

/* Related Journals / Journal Cards
   ========================================================================== */

.related-journals {
    margin-top: 4rem;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.journal-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.journal-card--list {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
}

.journal-card--list:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.journal-card__title {
    color: #1a1a2e;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.journal-card__title--large {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.journal-card__publisher {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.journal-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.journal-card__issn {
    color: #999;
    font-size: 0.85rem;
}

.journal-card__description {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.journal-card__subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.journal-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.journal-card__languages {
    color: #666;
    font-size: 0.9rem;
}

.journal-card__link {
    color: #1a1a2e;
    font-weight: 600;
    text-decoration: none;
}

/* Search Section
   ========================================================================== */

.search-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.search-bar-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1.2rem 5rem 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #1a1a2e;
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.8rem 2rem;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #2a2a3e;
}

.filter-toggles {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-toggle-btn {
    padding: 0.7rem 1.5rem;
    background: white;
    border: 2px solid #1a1a2e;
    color: #1a1a2e;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin: 0.5rem;
}

.filters-panel {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.filter-select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.filter-submit-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

.filter-submit {
    padding: 0.8rem 2.5rem;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

/* Results Section
   ========================================================================== */

.results-section {
    padding: 3rem 0;
    background: white;
}

.results-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.results-summary__title {
    margin: 0;
    color: #1a1a2e;
    font-size: 1.3rem;
}

.results-summary__subtitle {
    margin: 0.5rem 0 0;
    color: #666;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.no-results__title {
    color: #1a1a2e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.no-results__text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Pagination
   ========================================================================== */

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination__wrapper {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination__link {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
}

.pagination__current {
    padding: 0.5rem 1rem;
    background: #1a1a2e;
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

/* Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .section-heading {
        font-size: 2rem !important;
    }

    .journal-grid {
        grid-template-columns: 1fr;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }
}
