/* Year Review Page Styles */

/* Year header */
.yearreview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    margin: 15px auto;
    max-width: 95%;
    text-align: center;
}

.yearreview-header h2 {
    margin: 0;
    font-size: 2em;
}

.yearreview-header .year-subtitle {
    margin-top: 5px;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Stats cards with icons */
.yearreview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 95%;
    margin: 20px auto;
    padding: 0 15px;
}

.yearreview-stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.yearreview-stat-card .stat-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.yearreview-stat-card .stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.yearreview-stat-card .stat-label {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
}

/* Top movies sections */
.yearreview-section {
    max-width: 95%;
    margin: 25px auto;
}

.yearreview-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    margin-bottom: 15px;
}

.yearreview-section-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
}

.yearreview-section-header .section-icon {
    font-size: 1.3em;
}

/* Two-column layout for top movies */
.yearreview-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 15px;
}

.yearreview-column {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
}

.yearreview-column h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ranked movie list */
.ranked-movie-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranked-movie-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ranked-movie-item:last-child {
    border-bottom: none;
}

.ranked-movie-rank {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85em;
    flex-shrink: 0;
}

.ranked-movie-item:nth-child(1) .ranked-movie-rank {
    background: linear-gradient(135deg, #f7b733 0%, #fc4a1a 100%);
}

.ranked-movie-item:nth-child(2) .ranked-movie-rank {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
}

.ranked-movie-item:nth-child(3) .ranked-movie-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
}

.ranked-movie-info {
    flex-grow: 1;
    min-width: 0;
}

.ranked-movie-title {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranked-movie-title a {
    color: inherit;
    text-decoration: none;
}

.ranked-movie-title a:hover {
    text-decoration: underline;
}

.ranked-movie-meta {
    font-size: 0.8em;
    color: #777;
    margin-top: 2px;
}

.ranked-movie-stat {
    font-weight: bold;
    color: #3498db;
    white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .yearreview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .yearreview-columns {
        grid-template-columns: 1fr;
    }

    .yearreview-stat-card {
        padding: 15px 10px;
    }

    .yearreview-stat-card .stat-value {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .yearreview-header h2 {
        font-size: 1.5em;
    }

    .ranked-movie-item {
        gap: 8px;
    }

    .ranked-movie-rank {
        width: 24px;
        height: 24px;
        font-size: 0.75em;
    }
}