/* ==========================================================================
   Reviews Grid Styles
   ========================================================================== */

.ic-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.ic-review-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ic-review-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ic-review-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.ic-review-trigger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 152, 20, 0), rgba(249, 152, 20, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ic-review-trigger:hover::after {
    opacity: 1;
}

.ic-review-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Hidden reviews (loaded on demand) */
.ic-review-hidden {
    display: none;
}

/* Load More Button */
.ic-reviews-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

#ic-reviews-load-more {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
}

#ic-reviews-remaining {
    opacity: 0.8;
}

/* ==========================================================================
   Lightbox Modal Styles
   ========================================================================== */

.ic-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ic-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.ic-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ic-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.ic-modal-close:hover {
    background: rgba(255, 87, 51, 0.9);
    border-color: rgba(255, 87, 51, 1);
    transform: translateY(-2px);
}

.ic-modal-close svg {
    flex-shrink: 0;
}

.ic-modal-close span {
    white-space: nowrap;
}

.ic-modal-image-wrapper {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#ic-modal-image {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#ic-modal-facebook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .ic-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ic-reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .ic-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 0 10px;
    }
    
    .ic-modal-close {
        position: fixed;
        top: 20px;
        right: 20px;
        width: auto;
        min-width: 120px;
        padding: 12px 20px;
        background: rgba(255, 87, 51, 0.95);
        border: 2px solid rgba(255, 87, 51, 1);
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
    }
    
    .ic-modal-close:hover {
        background: rgba(255, 87, 51, 1);
        transform: translateY(0);
    }
    
    .ic-modal-close svg {
        width: 18px;
        height: 18px;
    }
    
    .ic-modal-image-wrapper,
    #ic-modal-image {
        max-height: calc(95vh - 140px);
    }
    
    #ic-modal-facebook-btn {
        width: calc(100% - 20px);
        max-width: 400px;
        font-size: 14px;
        padding: 14px 20px;
    }
}
