/**
 * Fake Review & Shop - Frontend Styles
 */

/* ============================================
   FAKE REVIEWS CONTAINER
   ============================================ */
.frs-reviews-container {
    margin: 20px 0;
}

.frs-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.frs-reviews-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
}

.frs-reviews-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frs-average-rating {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}

.frs-total-reviews {
    color: #666;
    font-size: 0.9em;
}

/* ============================================
   REVIEW ITEM - DEFAULT STYLE
   ============================================ */
.frs-review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease;
}

.frs-review-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.frs-review-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.frs-reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.frs-reviewer-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.frs-reviewer-info {
    flex: 1;
}

.frs-reviewer-name {
    font-weight: 600;
    font-size: 1em;
    color: #333;
    margin-bottom: 4px;
}

.frs-review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.frs-review-rating {
    display: flex;
    gap: 2px;
}

.frs-review-rating .frs-star {
    color: #ddd;
    font-size: 16px;
    line-height: 1;
}

.frs-review-rating .frs-star.filled {
    color: #ffc107;
}

.frs-review-date {
    font-size: 0.85em;
    color: #888;
}

.frs-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    color: #28a745;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 12px;
}

.frs-verified-badge::before {
    content: "✓";
    font-weight: bold;
}

/* Review Content */
.frs-review-content {
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.frs-review-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Review Images */
.frs-review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.frs-review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frs-review-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   REVIEW ITEM - COMPACT STYLE
   ============================================ */
.frs-reviews-compact .frs-review-item {
    padding: 15px;
    border-radius: 6px;
}

.frs-reviews-compact .frs-reviewer-avatar,
.frs-reviews-compact .frs-reviewer-avatar-placeholder {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.frs-reviews-compact .frs-review-content {
    font-size: 0.95em;
}

.frs-reviews-compact .frs-review-image {
    width: 60px;
    height: 60px;
}

/* ============================================
   REVIEW ITEM - GRID STYLE
   ============================================ */
.frs-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.frs-reviews-grid .frs-review-item {
    margin-bottom: 0;
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */
.frs-load-more-container {
    text-align: center;
    margin-top: 20px;
}

.frs-load-more-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s ease;
}

.frs-load-more-btn:hover {
    background: #555;
}

.frs-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.frs-load-more-btn.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: frs-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes frs-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   NO REVIEWS MESSAGE
   ============================================ */
.frs-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ============================================
   FSHOP INFO BOX
   ============================================ */
.frs-shop-info-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.frs-shop-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.frs-shop-link:hover {
    text-decoration: none;
}

.frs-shop-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.frs-shop-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.frs-shop-details {
    flex: 1;
}

.frs-shop-name {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.frs-shop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}

.frs-shop-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.frs-shop-rating .frs-star {
    color: #ffc107;
}

.frs-shop-sales,
.frs-shop-joined {
    display: flex;
    align-items: center;
    gap: 5px;
}

.frs-shop-action {
    margin-left: auto;
}

.frs-visit-shop-btn {
    background: #2271b1;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.frs-visit-shop-btn:hover {
    background: #135e96;
    color: #fff;
}

/* ============================================
   FSHOP PAGE
   ============================================ */
.frs-shop-header {
    position: relative;
    margin-bottom: 30px;
}

.frs-shop-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.frs-shop-banner-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.frs-shop-profile {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: -40px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.frs-shop-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.frs-shop-title {
    padding-bottom: 15px;
}

.frs-shop-title h1 {
    margin: 0 0 5px 0;
    font-size: 1.8em;
}

.frs-shop-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.frs-shop-stat {
    text-align: center;
}

.frs-shop-stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}

.frs-shop-stat-label {
    font-size: 0.9em;
    color: #666;
}

/* ============================================
   FSHOP PRODUCTS GRID
   ============================================ */
.frs-shop-products {
    margin-top: 30px;
}

.frs-shop-products-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.frs-products-grid {
    display: grid;
    gap: 20px;
}

.frs-products-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.frs-products-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.frs-products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */
.frs-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.frs-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.frs-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.frs-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frs-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frs-lightbox-prev {
    left: 20px;
}

.frs-lightbox-next {
    right: 20px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media screen and (max-width: 768px) {
    .frs-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .frs-review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .frs-reviewer-avatar,
    .frs-reviewer-avatar-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .frs-review-meta {
        gap: 10px;
    }
    
    .frs-reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .frs-shop-link {
        flex-direction: column;
        text-align: center;
    }
    
    .frs-shop-action {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .frs-shop-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .frs-products-grid.columns-3,
    .frs-products-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .frs-review-item {
        padding: 15px;
    }
    
    .frs-review-image {
        width: 60px;
        height: 60px;
    }
    
    .frs-products-grid.columns-2,
    .frs-products-grid.columns-3,
    .frs-products-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}
