/* =======================================
   NOVA THEME - YEAR PAGE CSS (COMPLETE)
   File: themes/nova/assets/css/year.css
   ======================================= */

/* =======================================
   PAGE CONTAINER
   ======================================= */

.nova-year-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 3rem;
}

/* =======================================
   BREADCRUMB
   ======================================= */

.nova-breadcrumb {
    margin-bottom: 1.5rem;
}

.nova-breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--nova-text-muted);
    margin: 0;
    padding: 0;
}

.nova-breadcrumb ol li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--nova-text-muted);
    opacity: 0.5;
}

.nova-breadcrumb ol li:last-child::after {
    display: none;
}

.nova-breadcrumb a {
    color: #7C3AED;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nova-breadcrumb a:hover {
    color: #EC4899;
}

.nova-breadcrumb .active {
    color: var(--nova-text-primary);
}

/* =======================================
   YEAR HEADER
   ======================================= */

.nova-year-header {
    background: #141414;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.nova-year-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
}

.nova-year-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nova-year-info {
    flex: 1;
}

.nova-year-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 0.8rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nova-year-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.nova-year-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.nova-year-name {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nova-year-count {
    font-size: 1.1rem;
    color: #b3b3b3;
    margin: 0 0 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 64px;
}

.nova-year-count i {
    font-size: 1rem;
    color: #7C3AED;
}

.nova-year-count strong {
    color: #7C3AED;
    font-weight: 700;
}

.nova-year-range {
    font-size: 0.9rem;
    color: #737373;
    margin: 0;
    padding-left: 64px;
}

/* =======================================
   YEAR ACTIONS
   ======================================= */

.nova-year-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Sort Button */
.nova-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px;
    color: #7C3AED;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.nova-sort-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.nova-sort-btn i {
    font-size: 1.1rem;
}

/* Year Navigation */
.nova-year-nav {
    display: flex;
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px;
    overflow: hidden;
    padding: 4px;
}

.nova-year-nav-btn {
    padding: 0.65rem 1.2rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 50px;
    white-space: nowrap;
}

.nova-year-nav-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.nova-year-nav-btn i {
    font-size: 0.9rem;
}

/* =======================================
   AD SECTION
   ======================================= */

.nova-year-ad-section {
    margin-bottom: 2rem;
}

.nova-ad-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.05);
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 2rem;
    color: #737373;
}

/* =======================================
   MOVIES GRID
   ======================================= */

.nova-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* =======================================
   CARDS - Complete Implementation
   ======================================= */

.nova-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nova-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.nova-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    background: #141414;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nova-card:hover .nova-card-poster {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.nova-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nova-card:hover .nova-card-img {
    transform: scale(1.1);
}

/* Card Badges */
.nova-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
}

.nova-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nova-badge-quality {
    background: rgba(124, 58, 237, 0.9);
    border: 1px solid #7C3AED;
    color: #fff;
}

/* Card Overlay */
.nova-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.nova-card:hover .nova-card-overlay {
    opacity: 1;
}

.nova-play-icon {
    font-size: 4rem;
    color: #ffffff;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.8));
}

.nova-card:hover .nova-play-icon {
    transform: scale(1);
    animation: playPulse 1.5s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nova-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
}

/* Card Rating */
.nova-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.nova-card-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.nova-card-rating span {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Card Info */
.nova-card-info {
    padding: 1rem 0.5rem 0;
}

.nova-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nova-card:hover .nova-card-title {
    color: #7C3AED;
}

.nova-card-meta {
    font-size: 0.85rem;
    color: #737373;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nova-meta-divider {
    color: #737373;
    opacity: 0.5;
}

/* =======================================
   PAGINATION
   ======================================= */

.nova-pagination {
    margin-top: 3rem;
}

.nova-pagi-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.nova-pagi-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px;
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nova-pagi-arrow:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.nova-pagi-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nova-pagi-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nova-pagi-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nova-pagi-num:hover {
    border-color: #7C3AED;
    color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.nova-pagi-num.active {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    border-color: #7C3AED;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.nova-pagi-dots {
    color: #737373;
    font-weight: 600;
    padding: 0 0.25rem;
}

.nova-pagi-info {
    text-align: center;
    background: rgba(124, 58, 237, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(124, 58, 237, 0.3);
    color: #b3b3b3;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =======================================
   EMPTY STATE
   ======================================= */

.nova-year-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    background: #141414;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.nova-year-empty-state i {
    font-size: 5rem;
    color: #737373;
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.nova-year-empty-state h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nova-year-empty-state p {
    font-size: 1.1rem;
    color: #b3b3b3;
    margin: 0 0 2rem;
    line-height: 1.6;
}

/* =======================================
   RESPONSIVE
   ======================================= */

@media (max-width: 1400px) {
    .nova-year-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

@media (max-width: 1200px) {
    .nova-year-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .nova-year-page {
        padding-top: 80px;
    }
    
    .nova-year-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 1rem;
    }
    
    .nova-year-header {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nova-year-page {
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .nova-breadcrumb {
        margin-bottom: 1rem;
    }
    
    .nova-year-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .nova-year-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nova-year-title {
        font-size: 1.8rem;
    }
    
    .nova-year-icon {
        width: 48px;
        height: 48px;
    }
    
    .nova-year-icon i {
        font-size: 1.5rem;
    }
    
    .nova-year-count {
        font-size: 1rem;
        padding-left: 56px;
    }
    
    .nova-year-range {
        padding-left: 56px;
    }
    
    .nova-year-actions {
        width: 100%;
    }
    
    .nova-sort-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .nova-year-nav {
        flex: 1;
    }
    
    .nova-year-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .nova-year-grid {
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
        gap: 1rem;
    }
    
    .nova-play-icon {
        font-size: 3rem;
    }
    
    .nova-pagi-wrapper {
        gap: 0.6rem;
    }
    
    .nova-pagi-arrow {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .nova-pagi-num {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .nova-pagi-info {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .nova-year-title {
        font-size: 1.6rem;
    }
    
    .nova-year-icon {
        width: 44px;
        height: 44px;
    }
    
    .nova-year-icon i {
        font-size: 1.3rem;
    }
    
    .nova-year-count {
        font-size: 0.95rem;
        padding-left: 52px;
    }
    
    .nova-year-range {
        font-size: 0.85rem;
        padding-left: 52px;
    }
    
    .nova-year-actions {
        flex-direction: column;
    }
    
    .nova-sort-btn,
    .nova-year-nav {
        width: 100%;
        justify-content: center;
    }
    
    .nova-year-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .nova-pagi-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    .nova-pagi-arrow {
        width: 100%;
        justify-content: center;
    }
    
    .nova-pagi-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nova-pagi-info {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .nova-year-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* =======================================
   ACCESSIBILITY & PERFORMANCE
   ======================================= */

.nova-sort-btn:focus,
.nova-year-nav-btn:focus,
.nova-pagi-arrow:focus,
.nova-pagi-num:focus,
.nova-card:focus-within .nova-card-poster {
    outline: 3px solid #7C3AED;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .nova-breadcrumb,
    .nova-year-actions,
    .nova-year-ad-section,
    .nova-pagination,
    .nova-card-overlay {
        display: none !important;
    }
    
    .nova-year-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}