/* Стили страницы архива номеров газеты "День в День" */

.magazine-archive-page {
    margin-bottom: 40px;
    font-family: inherit;
}

/* Карточка свежего номера (Hero) */
.magazine-featured-card {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.magazine-featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
}

.featured-badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* 3D-книга/газета свежего выпуска */
.featured-cover-wrapper {
    flex-shrink: 0;
    perspective: 800px;
}

.featured-3d-book {
    display: block;
    width: 170px;
    height: 235px;
    background: #fff;
    border-radius: 6px 12px 12px 6px;
    position: relative;
    box-shadow: 
        -4px 4px 12px rgba(0, 0, 0, 0.4),
        10px 10px 20px rgba(0, 0, 0, 0.25);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

.featured-3d-book:hover {
    transform: rotateY(0deg) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(to right, rgba(0,0,0,0.25), rgba(255,255,255,0.1), rgba(0,0,0,0.15));
    z-index: 2;
}

.book-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 14px 14px 14px 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
    border-left: 2px solid #cbd5e1;
}

.cover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 6px;
}

.cover-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cover-year {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.cover-body {
    text-align: center;
    padding: 10px 0;
}

.cover-newspaper-icon {
    font-size: 38px;
    margin-bottom: 4px;
}

.cover-issue-num {
    font-size: 15px;
    font-weight: 800;
    color: #1e3a8a;
}

.cover-title {
    font-size: 11px;
    line-height: 1.3;
    color: #475569;
    margin-top: 4px;
    font-weight: 600;
}

.cover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
    padding-top: 6px;
}

.cover-read-btn {
    font-weight: 700;
    color: #2563eb;
}

/* Описание свежего номера */
.featured-info {
    flex: 1;
}

.featured-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.meta-tag.meta-issue {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

.featured-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.featured-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-title a:hover {
    color: #93c5fd;
}

.featured-desc {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 650px;
}

.featured-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-magazine-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-magazine-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.btn-magazine-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-magazine-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
}

/* Панель фильтров */
.magazine-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.year-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.year-tab {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.year-tab:hover {
    background: #e2e8f0;
}

.year-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.year-count-pill {
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.year-tab.active .year-count-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.magazine-search-box {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

.magazine-search-input {
    width: 100%;
    padding: 7px 12px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.magazine-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Сетка номеров */
.magazine-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.magazine-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.magazine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-cover-container {
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.card-cover-link {
    display: block;
    text-decoration: none;
    width: 100%;
    max-width: 160px;
}

.mini-newspaper-sheet {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 8px 10px;
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s;
}

.mini-newspaper-sheet::after {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    z-index: -1;
}

.card-cover-link:hover .mini-newspaper-sheet {
    transform: scale(1.02);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0f172a;
    padding-bottom: 4px;
}

.sheet-brand {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.sheet-year {
    font-size: 9px;
    color: #64748b;
}

.sheet-body {
    text-align: center;
}

.sheet-icon {
    font-size: 26px;
}

.sheet-issue {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 2px;
}

.sheet-sub {
    font-size: 10px;
    color: #64748b;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sheet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 4px;
}

.sheet-badge-read {
    font-weight: 700;
    color: #2563eb;
}

.card-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.badge-num {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-year {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

.card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

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

.card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.card-buttons {
    display: flex;
    gap: 8px;
}

.btn-card-read {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #2563eb;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-card-read:hover {
    background: #1d4ed8;
}

.btn-card-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569 !important;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-card-down:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

.magazine-empty-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    color: #64748b;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .featured-content {
        flex-direction: column;
        text-align: center;
    }
    .featured-cover-wrapper {
        margin: 0 auto;
    }
    .featured-meta {
        justify-content: center;
    }
    .featured-actions {
        justify-content: center;
    }
    .magazine-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .magazine-search-box {
        max-width: none;
    }
}
