/* Modern Edition Viewer - Inspired by the reference image */

.modern-edition-viewer {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.modern-edition-viewer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.modern-viewer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.modern-viewer-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modern-viewer-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.modern-viewer-subtitle {
    color: #8e9aaf;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Edition Cards Grid */
.modern-editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.modern-edition-card {
    background: linear-gradient(145deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.modern-edition-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 123, 255, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 123, 255, 0.3);
}

.modern-card-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.modern-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-edition-card:hover .modern-card-image {
    transform: scale(1.1);
}

.modern-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0.8) 0%,
        rgba(0, 86, 179, 0.9) 50%,
        rgba(0, 64, 133, 0.95) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-edition-card:hover .modern-card-overlay {
    opacity: 1;
}

.modern-card-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modern-edition-card:hover .modern-card-overlay-content {
    transform: translateY(0);
}

.modern-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    z-index: 2;
}

.modern-card-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.modern-card-content {
    padding: 2rem;
    position: relative;
}

.modern-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modern-card-description {
    color: #b0b8c4;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modern-card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modern-card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.modern-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-card-button:hover::before {
    left: 100%;
}

.modern-card-button-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    flex: 1;
}

.modern-card-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    color: white;
}

.modern-card-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modern-card-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* Search and Filter Section */
.modern-search-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-search-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.modern-search-group {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.modern-search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.modern-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.modern-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.modern-search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modern-search-clear:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modern-filter-select {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.modern-filter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.modern-filter-select option {
    background: #2a2a2a;
    color: white;
}

/* Filter Tags */
.modern-filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

.modern-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInUp 0.3s ease;
}

.modern-filter-tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modern-filter-tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Results Counter */
.modern-results-counter {
    color: #8e9aaf;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
    display: block;
}

/* Empty State */
.modern-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #8e9aaf;
}

.modern-empty-icon {
    font-size: 4rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.modern-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.modern-empty-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.modern-empty-action {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modern-edition-card {
    animation: fadeInScale 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-viewer-title {
        font-size: 2rem;
    }
    
    .modern-viewer-subtitle {
        font-size: 1rem;
    }
    
    .modern-editions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modern-search-group {
        min-width: auto;
        max-width: none;
    }
    
    .modern-filter-select {
        min-width: auto;
    }
    
    .modern-card-content {
        padding: 1.5rem;
    }
    
    .modern-card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modern-card-button-secondary {
        width: 100%;
        height: auto;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .modern-viewer-container {
        padding: 0 0.5rem;
    }
    
    .modern-search-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .modern-card-image-container {
        height: 200px;
    }
    
    .modern-card-content {
        padding: 1rem;
    }
    
    .modern-card-title {
        font-size: 1.3rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .modern-edition-card {
        border: 2px solid white;
    }
    
    .modern-card-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .modern-edition-card,
    .modern-card-button,
    .modern-search-input,
    .modern-filter-select {
        transition: none !important;
        animation: none !important;
    }
    
    .modern-edition-card:hover {
        transform: none !important;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .modern-edition-viewer {
    background: linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
}

[data-theme="dark"] .modern-edition-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Print styles */
@media print {
    .modern-edition-viewer {
        background: white !important;
        color: black !important;
    }
    
    .modern-edition-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .modern-card-actions {
        display: none !important;
    }
}

