/*--------------------------------------------------------------
# Issue List Page - Professional Archive Design
--------------------------------------------------------------*/

/* Page Header Section */
.issue-list-page-header {
    background: linear-gradient(135deg, #106eea 0%, #1976f2 100%);
    color: #fff;
    padding: 30px 20px;
    margin: 10px 0 25px 0;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(16, 110, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.issue-list-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.issue-list-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
    position: relative;
    z-index: 1;
}

.issue-list-page-header .subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

.issue-list-page-header .archive-icon {
    font-size: 48px;
    opacity: 0.2;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* Statistics Bar */
.archive-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 10px;
    padding: 20px 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(16, 110, 234, 0.2);
}

.stat-card .stat-icon {
    font-size: 32px;
    color: #106eea;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Volume Card */
.volume-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.volume-card:hover {
    box-shadow: 0 6px 30px rgba(16, 110, 234, 0.15);
    transform: translateY(-3px);
    border-color: #106eea;
}

/* Volume Header */
.volume-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 18px 25px;
    border-bottom: 3px solid #106eea;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.volume-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.volume-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.volume-number-badge {
    background: #106eea;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(16, 110, 234, 0.3);
}

.volume-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.4;
}

.volume-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.issue-count-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.expand-icon {
    font-size: 28px;
    color: #106eea;
    transition: transform 0.3s ease;
}

.expand-icon.rotated {
    transform: rotate(180deg);
}

/* Volume Body */
.volume-body {
    padding: 0;
}

/* Issue Grid Layout - Compact 4 Cards per Row */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 20px;
}

/* Issue Card - Compact Design */
.issue-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.issue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #106eea 0%, #3b8af2 100%);
    transition: width 0.3s ease;
}

.issue-card:hover {
    border-color: #106eea;
    box-shadow: 0 5px 20px rgba(16, 110, 234, 0.2);
    transform: translateY(-5px);
}

.issue-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.issue-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.issue-number {
    font-size: 20px;
    font-weight: 700;
    color: #106eea;
}

.issue-icon {
    font-size: 28px;
    color: #106eea;
    opacity: 0.2;
}

.issue-card-body {
    position: relative;
    z-index: 1;
}

.issue-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.3;
    min-height: 40px;
}

.issue-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
}

.meta-item i {
    color: #106eea;
    font-size: 13px;
}

.view-articles-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #106eea 0%, #3b8af2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(16, 110, 234, 0.3);
    width: 100%;
}

.view-articles-btn:hover {
    background: linear-gradient(135deg, #0d58ba 0%, #106eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(16, 110, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

.view-articles-btn i {
    font-size: 14px;
}

/* Current Issue Badge */
.current-issue-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 0 8px 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4);
    z-index: 2;
}

.current-issue-badge i {
    margin-right: 4px;
}

/* Empty State */
.empty-issues {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 25px;
}

.empty-issues i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-issues h4 {
    font-size: 20px;
    color: #6c757d;
    margin-bottom: 10px;
}

.empty-issues p {
    font-size: 14px;
    color: #adb5bd;
}

/* Search and Filter Section */
.archive-controls {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.search-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #106eea;
    box-shadow: 0 0 0 3px rgba(16, 110, 234, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #106eea 0%, #3b8af2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #0d58ba 0%, #106eea 100%);
    transform: translateY(-2px);
}

/* Loading State */
.volume-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.volume-loading::after {
    content: "Loading volumes...";
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
    .issue-list-page-header {
        padding: 20px 15px;
        margin: 8px 0 20px 0;
    }

    .issue-list-page-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .issue-list-page-header .subtitle {
        font-size: 14px;
    }

    .issue-list-page-header .archive-icon {
        font-size: 36px;
        right: 15px;
    }

    .archive-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-card {
        min-width: 100%;
        padding: 15px 20px;
    }

    .stat-card .stat-value {
        font-size: 28px;
    }

    .stat-card .stat-icon {
        font-size: 28px;
    }

    .volume-card {
        margin-bottom: 15px;
    }

    .volume-header {
        padding: 15px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .volume-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .volume-number-badge {
        font-size: 14px;
        padding: 8px 15px;
        min-width: 70px;
    }

    .volume-title {
        font-size: 17px;
    }

    .volume-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .issue-count-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .expand-icon {
        font-size: 24px;
    }

    .issues-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .issue-card {
        padding: 15px;
    }

    .issue-card-header {
        margin-bottom: 12px;
    }

    .issue-number {
        font-size: 20px;
    }

    .issue-icon {
        font-size: 28px;
    }

    .issue-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .meta-item {
        font-size: 12px;
    }

    .view-articles-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .archive-controls {
        padding: 15px;
        margin-bottom: 20px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991px) {
    .issue-list-page-header h1 {
        font-size: 28px;
    }

    .archive-stats {
        gap: 15px;
    }

    .stat-card {
        min-width: 150px;
    }

    .volume-header {
        padding: 16px 20px;
    }

    .volume-title {
        font-size: 18px;
    }

    .issues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 18px;
    }
    
    .issue-card {
        padding: 12px;
    }
    
    .issue-number {
        font-size: 18px;
    }
    
    .issue-title {
        font-size: 14px;
    }
}

/* Large Desktop */
@media (min-width: 992px) {
    .issue-list-page-header h1 {
        font-size: 36px;
    }

    .issues-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .volume-title {
        font-size: 22px;
    }
}

/* Print Styles */
@media print {
    .issue-list-page-header,
    .archive-stats,
    .archive-controls,
    .view-articles-btn {
        display: none !important;
    }

    .volume-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .volume-header {
        background: #f8f9fa !important;
        border-bottom: 2px solid #222;
    }

    .issues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .issue-card {
        border: 1px solid #ddd;
        background: #fff !important;
    }
}

/* Accessibility */
.volume-header:focus,
.view-articles-btn:focus {
    outline: 3px solid #106eea;
    outline-offset: 2px;
}

/* Smooth Transitions */
.accordion-collapse {
    transition: all 0.3s ease-in-out;
}

/* Animation for expanding */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.issue-card {
    animation: fadeInUp 0.4s ease-out;
}

.issue-card:nth-child(1) { animation-delay: 0.05s; }
.issue-card:nth-child(2) { animation-delay: 0.1s; }
.issue-card:nth-child(3) { animation-delay: 0.15s; }
.issue-card:nth-child(4) { animation-delay: 0.2s; }
.issue-card:nth-child(5) { animation-delay: 0.25s; }
.issue-card:nth-child(6) { animation-delay: 0.3s; }
