/* Custom Style Sheet for Zipanda Reviews Standalone Site */

:root {
    --bg-page: #f6f8fb;
    --bg-card: #ffffff;
    --primary: #09b1ba;
    --primary-hover: #07969e;
    --primary-light: #eefbfc;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --star-color: #f59e0b;
    --verified-color: #10b981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(9, 177, 186, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.rev-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Header */
.rev-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
}

.rev-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.rev-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.rev-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.rev-brand-sub {
    color: var(--primary);
    font-size: 1.1rem;
    margin-left: 2px;
    padding: 2px 6px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.rev-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--text-main);
    color: #fff;
    padding: 10px 18px;
    border-radius: 99px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rev-back-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Hero Section */
.rev-hero {
    background: radial-gradient(circle at 90% 10%, rgba(9, 177, 186, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 10% 90%, rgba(9, 177, 186, 0.03) 0%, transparent 60%),
                #ffffff;
    padding: 140px 0 60px;
    border-bottom: 1px solid var(--border-color);
}

.rev-hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.rev-hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

/* Stats */
.rev-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.rev-stat-card {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.rev-stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.rev-stat-val {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rev-stat-star {
    color: var(--star-color);
    font-size: 1.5rem;
}

.rev-stat-lbl {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Search and Filters */
.rev-controls-wrap {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rev-search-box {
    position: relative;
    width: 100%;
}

.rev-search-box input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.rev-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(9, 177, 186, 0.15);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.rev-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(9, 177, 186, 0.3);
}

/* Main Grid & Scroll Section */
.rev-grid-section {
    padding: 60px 0 100px;
    background-color: var(--bg-page);
}

.rev-scroll-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    height: 780px;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

/* Gradient Mask overlay to fade top/bottom of scrolling board */
.rev-scroll-board::before,
.rev-scroll-board::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 10;
    pointer-events: none;
}

.rev-scroll-board::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-page) 0%, transparent 100%);
}

.rev-scroll-board::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-page) 0%, transparent 100%);
}

/* Column Wrapper */
.rev-column-wrapper {
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Columns */
.rev-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    will-change: transform;
}

/* Auto-Scroll Animations using hardware-acceleration */
.rev-column.scroll-up {
    animation: scroll-up-loop 80s linear infinite;
}

.rev-column.scroll-down {
    animation: scroll-down-loop 80s linear infinite;
}

/* Hover effect: pause scrolling for reading */
.rev-column-wrapper:hover .rev-column {
    animation-play-state: paused;
}

@keyframes scroll-up-loop {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes scroll-down-loop {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Review Cards */
.rev-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    break-inside: avoid;
}

.rev-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* Card Header */
.rev-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.rev-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rev-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.rev-user-info-text {
    display: flex;
    flex-direction: column;
}

.rev-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.rev-user-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    color: var(--verified-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Rating Stars */
.rev-stars {
    color: var(--star-color);
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

/* Card Body */
.rev-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rev-content-text {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: break-word;
}

/* Product Tag */
.rev-product-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.rev-product-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.rev-product-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.rev-product-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.rev-product-icon {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
}

.rev-product-tag:hover .rev-product-icon {
    color: var(--primary);
    transform: translateX(2px);
}

/* Empty State / No Results */
.no-results-msg {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.no-results-msg h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.no-results-msg p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.clear-filters-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 99px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(9, 177, 186, 0.25);
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Footer */
.rev-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .rev-scroll-board {
        grid-template-columns: repeat(2, 1fr);
        height: 680px;
    }
    
    /* Hide the right column on tablet to fit layout comfortably */
    .rev-scroll-board .rev-column-wrapper:nth-child(3) {
        display: none;
    }

    .rev-hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .rev-hero-title {
        font-size: 2.25rem;
    }
    
    .rev-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 20px;
    }
    
    .rev-stat-card {
        padding: 16px;
    }

    .rev-scroll-board {
        grid-template-columns: 1fr;
        height: 560px;
    }

    /* Hide middle column, show only left column (which scrolls up) on mobile */
    .rev-scroll-board .rev-column-wrapper:nth-child(2) {
        display: none;
    }
}
