/* Reviews Page Specific Styles */
.reviews-hero {
    text-align: center;
    padding: 60px 0 40px;
    margin-bottom: 40px;
    border: none;
    outline: none;
    background: transparent;
}

.reviews-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.reviews-hero p {
    font-size: 1.1rem;
    color: #9CA3AF;
    margin-bottom: 20px;
}

.sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.1);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #4ADE80;
}

.sync-dot {
    width: 6px;
    height: 6px;
    background: #af2c2c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Statistics Section - KEEP HORIZONTAL ON ALL DEVICES */
.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 35px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 180px;
    flex: 1;
    max-width: 250px;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #4ADE80;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Reviews Container */
.reviews-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Review Cards */
.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.review-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
}

.reviewer-info h4 {
    color: #4ADE80;
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.reviewer-id {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.star {
    color: #4ADE80;
    font-size: 1rem;
}

.review-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.review-date {
    font-size: 0.75rem;
}

.review-type {
    background: rgba(74, 222, 128, 0.1);
    color: #4ADE80;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Custom Avatar Image Styling */
.reviewer-avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4ADE80;
    transition: all 0.3s ease;
}

.reviewer-avatar-image:hover {
    transform: scale(1.1);
    border-color: #22C55E;
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 30px auto;
    background: #4ADE80;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.load-more-btn:hover {
    background: #4ADE80;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 222, 128, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Review Image Styling */
.review-image-container {
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: transparent;
    border: none;
    height: auto;
}

.review-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: scale(1);
    border: none;
    outline: none;
    border-radius: 12px;
}

.review-image:hover {
    transform: scale(1);
    opacity: 0.95;
}

/* Remove any default image borders */
.review-card img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Image modal for full-size viewing */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Responsive Design - KEEP STATS HORIZONTAL ON MOBILE */
@media (max-width: 768px) {
    .reviews-hero h1 {
        font-size: 2.2rem;
    }

    /* KEEP STATS SIDE BY SIDE ON MOBILE */
    .reviews-stats {
        gap: 15px;
        padding: 0 10px;
    }

    .stat-card {
        padding: 15px 20px;
        min-width: 100px;
        flex: 1;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .review-image {
        max-height: 250px;
    }

    .image-modal-content {
        max-width: 95%;
        max-height: 85%;
    }

    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

.footer {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #e5e7eb;
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Top area with columns - responsive grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #4ADE80;
}

.footer-tag {
    margin-top: .75rem;
    font-size: .9rem;
    color: rgba(255,255,255,0.7);
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4ADE80;
}

.footer-link {
    display: block;
    margin-bottom: .55rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color .25s ease;
}

.footer-link:hover {
    color: #4ADE80;
}

/* Disabled footer links */
.footer-link-disabled {
    display: block;
    margin-bottom: .55rem;
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
}

/* Bottom strip */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.2rem;
    display: flex;
    justify-content: center; /* Changed from space-between to center */
    align-items: center;
    font-size: .85rem;
    text-align: center; /* Added for extra centering */
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
        font-size: 0.9rem;
    }

    /* Stack columns vertically on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    /* Brand section on mobile */
    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-logo {
        justify-content: center;
        font-size: 1.2rem;
    }

    .footer-tag {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    /* Column headers */
    .footer-col h3 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    /* Links */
    .footer-link {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }

    /* Bottom section - stack on mobile */
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1rem;
    }

    /* Telegram button on mobile */
    .footer-bottom .telegram-btn {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        font-size: 1.1rem;
    }

    .footer-tag {
        font-size: 0.8rem;
    }

    .footer-col h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .footer-link {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .reviews-hero h1 {
        font-size: 2rem;
    }

    /* COMPACT STATS FOR VERY SMALL SCREENS */
    .reviews-stats {
        gap: 10px;
        padding: 0 5px;
    }

    .stat-card {
        padding: 12px 15px;
        min-width: 90px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }    
}

/* SMALLER NAVIGATION ARROWS - WHITE COLOR */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 222, 128, 0.95);
    border: none;
    border-radius: 10px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(74, 222, 128, 0.8);
    color: #ffffff !important; /* WHITE ARROW COLOR */
    font-size: 16px;
    font-weight: bold;
}

.modal-nav-btn:hover {
    background: rgba(74, 222, 128, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.5);
    border-color: rgba(74, 222, 128, 1);
    color: #ffffff !important; /* WHITE ARROW COLOR ON HOVER */
}

.modal-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
    color: #ffffff !important; /* WHITE ARROW COLOR ON ACTIVE */
}

/* Position arrows OUTSIDE the image area */
.modal-prev {
    left: -65px;
}

.modal-next {
    right: -65px;
}

/* Hide arrows when there's only one image */
.modal-nav-btn.hidden {
    display: none !important;
}

/* Enhanced image counter - positioned outside */
.image-counter {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(74, 222, 128, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* MOBILE: Keep same size as desktop now */
@media (max-width: 768px) {
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        border-radius: 8px;
        color: #ffffff !important; /* WHITE ARROW COLOR ON MOBILE */
        font-size: 14px;
    }

    .modal-prev {
        left: -60px;
    }

    .modal-next {
        right: -60px;
    }

    .image-counter {
        bottom: -40px;
        font-size: 13px;
        padding: 8px 14px;
    }

    .image-modal-content {
        max-width: 85%;
        max-height: 80%;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        color: #ffffff !important; /* WHITE ARROW COLOR ON SMALL SCREENS */
        font-size: 12px;
    }

    .modal-prev {
        left: -55px;
    }

    .modal-next {
        right: -55px;
    }

    .image-counter {
        bottom: -35px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .image-modal-content {
        max-width: 80%;
        max-height: 75%;
    }
}

/* For wide screens - keep them reasonably sized */
@media (min-width: 1200px) {
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        color: #ffffff !important; /* WHITE ARROW COLOR ON LARGE SCREENS */
        font-size: 18px;
    }

    .modal-prev {
        left: -70px;
    }

    .modal-next {
        right: -70px;
    }

    .image-counter {
        bottom: -50px;
        font-size: 15px;
        padding: 10px 18px;
    }
}
