/**
 * Reviews Archive Page Styles
 * 
 * @package OutputLag
 * @since 1.0.0
 */

/* ===================================================================
   Reviews Archive Hero
   =================================================================== */

.reviews-hero {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    position: relative;
    overflow: hidden;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(var(--rgb-primary-blue), 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--rgb-primary-green), 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, 
        var(--color-primary-blue) 0%, 
        var(--color-primary-green) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ===================================================================
   Reviews Sections
   =================================================================== */

.reviews-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.reviews-section:nth-child(even) {
    background: rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-primary-blue) 0%, 
        var(--color-primary-green) 100%
    );
    border-radius: 2px;
}

.section-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===================================================================
   Recent Reviews Grid
   =================================================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.review-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.review-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio to match other cards */
    overflow: hidden;
}

.review-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card:hover .review-thumbnail img {
    transform: scale(1.05);
}

.review-score-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 24px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Score 10 - Gold with glow */
.review-score-badge[data-score="10.0"] {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    animation: goldGlow 2s ease-in-out infinite alternate;
}

/* Score 9-9.9 - Output Lag blue */
.review-score-badge[data-score^="9"] {
    background: linear-gradient(135deg, var(--color-primary-blue), #0099CC);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

/* Score 7-8.9 - Green */
.review-score-badge[data-score^="8"],
.review-score-badge[data-score^="7"] {
    background: linear-gradient(135deg, #00FF88, #00CC66);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
}

/* Score 5-6.9 - Orange */
.review-score-badge[data-score^="6"],
.review-score-badge[data-score^="5"] {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.4);
}

/* Score below 5 - Red */
.review-score-badge[data-score^="4"],
.review-score-badge[data-score^="3"],
.review-score-badge[data-score^="2"],
.review-score-badge[data-score^="1"]:not([data-score^="10"]) {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
}

.review-content {
    padding: var(--spacing-sm);
}

.review-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.review-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.review-title a:hover {
    color: var(--color-primary-accent);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
    font-size: 11px;
    color: var(--color-text-secondary);
}

.review-excerpt {
    color: var(--color-text-secondary);
    line-height: 1.4;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================================
   Top Reviews All Time
   =================================================================== */

.top-reviews-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .top-reviews-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .top-reviews-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .top-reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.top-review-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.top-review-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.rank-number {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary-accent);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 8px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-review-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio to match other cards */
    overflow: hidden;
}

.top-review-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.top-review-item:hover .top-review-thumbnail img {
    transform: scale(1.05);
}

.top-review-score-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 24px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.top-review-content {
    padding: var(--spacing-sm);
}

.top-review-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.top-review-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-review-title a:hover {
    color: var(--color-primary-accent);
}

/* Color coding for top review score overlays */
.top-review-score-overlay[data-score="10.0"] {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    animation: goldGlow 2s ease-in-out infinite alternate;
}

.top-review-score-overlay[data-score^="9"] {
    background: linear-gradient(135deg, var(--color-primary-blue), #0099CC);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

.top-review-score-overlay[data-score^="8"],
.top-review-score-overlay[data-score^="7"] {
    background: linear-gradient(135deg, #00FF88, #00CC66);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
}

.top-review-score-overlay[data-score^="6"],
.top-review-score-overlay[data-score^="5"] {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.4);
}

.top-review-score-overlay[data-score^="4"],
.top-review-score-overlay[data-score^="3"],
.top-review-score-overlay[data-score^="2"],
.top-review-score-overlay[data-score^="1"]:not([data-score^="10"]) {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
}

/* ===================================================================
   Top Reviews of Year
   =================================================================== */

.year-reviews-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .year-reviews-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .year-reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .year-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.year-review-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.year-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.year-review-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio to match other cards */
    overflow: hidden;
}

.year-review-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.year-review-card:hover .year-review-thumbnail img {
    transform: scale(1.05);
}

.year-review-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 24px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Year review score colors - same system as main scores */
.year-review-score[data-score="10.0"] {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    animation: goldGlow 2s ease-in-out infinite alternate;
}

.year-review-score[data-score^="9"] {
    background: linear-gradient(135deg, var(--color-primary-blue), #0099CC);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

.year-review-score[data-score^="8"],
.year-review-score[data-score^="7"] {
    background: linear-gradient(135deg, #00FF88, #00CC66);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
}

.year-review-score[data-score^="6"],
.year-review-score[data-score^="5"] {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.4);
}

.year-review-score[data-score^="4"],
.year-review-score[data-score^="3"],
.year-review-score[data-score^="2"],
.year-review-score[data-score^="1"]:not([data-score^="10"]) {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
}

.year-review-content {
    padding: var(--spacing-sm);
}

.year-review-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.year-review-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.year-review-title a:hover {
    color: var(--color-primary-accent);
}

/* ===================================================================
   Browse All Section
   =================================================================== */

.browse-all {
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.browse-actions {
    margin-top: var(--spacing-xl);
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, 
        var(--color-primary-blue) 0%, 
        var(--color-primary-green) 100%
    );
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ===================================================================
   Responsive Design
   =================================================================== */

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .top-review-item {
        grid-template-columns: 40px 80px 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .rank-number {
        font-size: 24px;
    }
    
    .top-review-title {
        font-size: 18px;
    }
    
    .year-reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .top-review-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .year-reviews-grid {
        grid-template-columns: 1fr;
    }
}