/* ====== 三層內容統一設計樣式 ====== */

/* 統一評論區域 */
.unified-reviews-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.unified-reviews-section .section-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

/* 評分概覽 */
.reviews-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-score {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.rating-stars {
    font-size: 1.5rem;
}

.rating-stars .fa-star.filled {
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.rating-count {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 官方精選區域 */
.official-featured-section {
    margin-bottom: 40px;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.content-count {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 官方精選卡片 */
.official-review-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.official-review-card.featured {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.official-badge {
    position: absolute;
    top: -8px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* 快速短評區域 */
.quick-reviews-section {
    margin-bottom: 40px;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.write-review-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.write-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 短評卡片設計 */
.short-review-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.short-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.short-review-card.featured {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border-left: 4px solid #2196f3;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -8px;
    left: 20px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nickname {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.date {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 展示更多按鈕 */
.show-more-btn {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #ced4da;
    border-radius: 12px;
    padding: 15px 20px;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.show-more-section {
    text-align: center;
}

/* 篩選器 */
.reviews-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.reviews-filter select {
    padding: 8px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
}

/* 無評論狀態 */
.no-reviews-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-reviews-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.write-first-review-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.write-first-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* 編輯群專用區域 */
.editor-section {
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaf6 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #e0e0e0;
}

.login-section {
    text-align: center;
    padding: 30px;
}

.editor-login-btn {
    background: linear-gradient(135deg, #673ab7, #9c27b0);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.editor-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 58, 183, 0.4);
    text-decoration: none;
    color: white;
}

.login-desc {
    margin-top: 15px;
    color: #6c757d;
    font-style: italic;
}

.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.editor-toggle-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.editor-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

.editor-status {
    color: #6c757d;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-status::before {
    content: "👑";
    font-size: 1.2rem;
}

/* 響應式設計 - 三層內容 */
@media (max-width: 768px) {
    .unified-reviews-section {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .official-review-card {
        padding: 20px 15px;
    }

    .subsection-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .reviews-filter {
        flex-direction: column;
        gap: 10px;
    }

    .rating-score {
        font-size: 2.5rem;
    }

    .show-more-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .review-header {
        flex-direction: column;
        gap: 10px;
    }

    .review-meta {
        align-items: flex-start;
    }
}
