/**
 * ダウンタウンプラス統一口コミ・レビューシステム
 * 共通スタイルシート
 */

/* ===============================================
   評価サマリーウィジェット
=============================================== */
.review-summary-widget {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.review-summary-widget::before {
    content: "みんなの評価";
    position: absolute;
    top: -10px;
    left: 24px;
    background: white;
    padding: 0 12px;
    color: #667eea;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-summary-container {
    display: flex;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
}

.review-summary-main {
    text-align: center;
    min-width: 200px;
}

.average-rating-huge {
    font-size: 5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.rating-stars-huge {
    font-size: 2.5rem;
    color: #ffc107;
    margin: 12px 0;
    letter-spacing: 4px;
}

.review-count-large {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.review-count-large .count-number {
    font-size: 1.5rem;
    color: #667eea;
}

.trending-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.9rem;
    margin-top: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.trending-badge .trending-today {
    font-weight: 700;
    font-size: 1.1rem;
}

.rating-distribution-chart {
    flex: 1;
    min-width: 350px;
}

.rating-distribution-chart h4 {
    margin-bottom: 16px;
    color: #333;
    font-size: 1.1rem;
}

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

.rating-label {
    font-size: 1rem;
    color: #666;
    width: 40px;
}

.rating-bar-container {
    flex: 1;
    background: #e9ecef;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
}

.rating-count {
    font-size: 0.9rem;
    color: #666;
    width: 60px;
    text-align: right;
}

/* リアルタイムティッカー */
.review-live-ticker {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.ticker-item {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item span {
    font-weight: 700;
    color: #667eea;
}

/* ===============================================
   口コミ投稿フォーム
=============================================== */
.review-form-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.interactive-review-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 星評価入力 */
.rating-group {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
}

.star-rating-input {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}

.star-btn {
    font-size: 3rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.star-btn:hover {
    color: #ffc107;
    transform: scale(1.2);
}

.star-btn.active {
    color: #ffc107;
    animation: starBounce 0.3s;
}

@keyframes starBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.rating-text {
    font-size: 1rem;
    color: #666;
    display: block;
    margin-top: 12px;
}

/* フォーム要素 */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
}

.required {
    color: #dc3545;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* 送信ボタン */
.submit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.form-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 12px;
}

/* 成功メッセージ */
.review-success-message {
    background: linear-gradient(135deg, #28a74515 0%, #20c99715 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.review-success-message i {
    font-size: 3rem;
    color: #28a745;
}

.review-success-message h4 {
    font-size: 1.5rem;
    color: #333;
    margin: 16px 0;
}

.btn-share-twitter {
    background: #1da1f2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

/* ===============================================
   口コミリスト
=============================================== */
.review-list-container {
    margin: 32px 0;
}

.review-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sort-buttons,
.filter-buttons {
    display: flex;
    gap: 8px;
}

.sort-btn,
.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.sort-btn:hover,
.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.sort-btn.active,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* レビューカード */
.review-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.review-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.review-rating {
    color: #ffc107;
    font-size: 1rem;
}

.review-date {
    color: #999;
    font-size: 0.85rem;
}

/* バッジ */
.reviewer-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new {
    background: #fff3cd;
    color: #856404;
}

.badge-helpful {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-top {
    background: #f8d7da;
    color: #721c24;
}

.badge-verified {
    background: #d4edda;
    color: #155724;
}

/* レビュー本文 */
.review-content {
    margin-bottom: 16px;
}

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

.review-text {
    line-height: 1.8;
    color: #333;
}

/* アクションボタン */
.review-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.action-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.like-btn.liked {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.like-count {
    font-weight: 600;
}

/* もっと見るボタン */
.load-more-container {
    text-align: center;
    margin: 32px 0;
}

.load-more-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 12px 48px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: #667eea;
    color: white;
}

/* ===============================================
   レスポンシブ対応
=============================================== */
@media (max-width: 768px) {
    .review-summary-container {
        flex-direction: column;
        gap: 24px;
    }

    .rating-distribution-chart {
        min-width: 100%;
    }

    .star-rating-input {
        gap: 8px;
    }

    .star-btn {
        font-size: 2.5rem;
    }

    .review-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-buttons,
    .filter-buttons {
        width: 100%;
    }

    .review-card {
        padding: 16px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}