/* archive.css */


.vestnik-plus-archive-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.vestnik-plus-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #274193;
    text-transform: uppercase;
}

/* Сетка годов */
.vestnik-plus-years-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background-color: #ccc;
    gap: 1px;
    border: 1px solid #ccc;
    margin-bottom: 40px;
}

.vestnik-plus-year-btn {
    padding: 12px 10px;
    text-align: center;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.vestnik-plus-year-btn:hover {
    background-color: #f0f4f8;
}

.vestnik-plus-year-btn.active {
    background-color: #274193;
    color: #fff;
    border-color: #274193;
    position: relative;
    z-index: 1;
}

.vestnik-plus-year-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
    background-color: #fafafa;
}

/* Сетка выпусков */
.vestnik-plus-issues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vestnik-plus-issue-card {
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    min-height: 300px;
}

.vestnik-plus-issue-card:hover {
    box-shadow: 0 5px 15px rgba(39, 65, 147, 0.2);
    text-decoration: none;
}

.vestnik-plus-issue-header {
    padding: 15px;
    border-bottom: 1px dotted #ccc;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #274193;
}

.vestnik-plus-issue-body {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Иконка PDF по умолчанию */
.vestnik-plus-pdf-icon {
    width: 60px;
    height: 80px;
    background-color: #e57373;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
    position: relative;
    transition: background-color 0.3s ease;
}

.vestnik-plus-pdf-text {
    font-size: 18px;
    transition: all 0.3s ease;
}

/* При наведении на карточку меняем надпись PDF на глаз */
.vestnik-plus-issue-card:hover .vestnik-plus-pdf-icon {
    background-color: #c62828;
}

.vestnik-plus-pdf-icon::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 15px 15px 0;
    border-style: solid;
    border-color: #f9f9f9 #f9f9f9 #c62828 #c62828;
    box-shadow: -1px 1px 1px rgba(0,0,0,0.2);
    transition: border-color 0.3s ease;
}

.vestnik-plus-issue-card:hover .vestnik-plus-pdf-icon::after {
    border-color: #f9f9f9 #f9f9f9 #b71c1c #b71c1c;
}

/* Loader */
.vestnik-plus-loader {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #274193;
}

.vestnik-plus-error {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    background-color: #ffebee;
    margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .vestnik-plus-years-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .vestnik-plus-years-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vestnik-plus-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .vestnik-plus-years-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vestnik-plus-issues-grid {
        grid-template-columns: 1fr;
    }
}


 
 


/* Таблица поиска */
.vestnik-plus-table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.vestnik-plus-search-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.vestnik-plus-search-table th,
.vestnik-plus-search-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.vestnik-plus-search-table th {
    background-color: #274193;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.vestnik-plus-search-table tbody tr {
    transition: background-color 0.2s ease;
}

.vestnik-plus-search-table tbody tr:hover {
    background-color: #f5f8fc;
}

.vestnik-plus-table-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #274193;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.vestnik-plus-table-btn:hover {
    background-color: #1a2f6c;
}