/* AI物件レビュー画面用CSS */

/* メインコンテナ */
.main-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

/* ガラスカード */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
}

/* レビューセクション */
.review-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

/* セクションヘッダー */
.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h3 {
    color: #0072BC;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.section-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 400;
}

/* AIセクション用ヘッダー */
.section-header-ai {
    margin-bottom: 20px;
    text-align: center;
}

.section-header-ai h3 {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

/* AIバッジ */
.ai-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* コンパクトな評価表示 - シンプル大型星レイアウト */
.rating-display-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 0 25px 0;
    margin-bottom: 20px;
}

.total-rating-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.rating-stars-medium {
    font-size: 3.5rem;
    color: #FFD700;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 215, 0, 0.6);
    letter-spacing: 8px;
    margin-bottom: 12px;
}

.rating-info-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-align: center;
}

.rating-label-medium {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.rating-separator {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
}

.rating-score-medium {
    font-size: 1.4rem;
    opacity: 0.9;
    color: white;
    font-weight: 500;
}

/* 総合評価セクション */
.total-rating-section {
    background: linear-gradient(135deg, #0072BC 0%, #005587 100%);
    color: white;
    text-align: center;
}

.total-rating-section .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.total-rating-section .section-header h3 {
    color: white;
}

/* AI総合コメントセクション */
.ai-comment-section {
    background: linear-gradient(135deg, #0072BC 0%, #005587 100%);
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 114, 188, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 25px 30px;
}

/* 評価表示 */
.rating-display {
    padding: 20px 0;
}

.rating-stars-large {
    font-size: 4rem;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 15px;
    letter-spacing: 8px;
}

.rating-label-large {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.rating-score-large {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* コメントボックス */
.comment-box {
    background: rgba(248, 249, 250, 0.8);
    border-left: 4px solid #0072BC;
    border-radius: 8px;
    padding: 20px;
    line-height: 1.8;
    color: #333;
}

.comment-box p {
    margin: 0;
}

/* AI総合コメントボックス（大） */
.ai-comment-box-large {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ai-comment-box-large p {
    margin: 0;
    font-weight: 400;
}

/* AIコメントボックス（詳細評価用） */
.ai-comment-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    border-radius: 10px;
    padding: 20px;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ai-comment-box p {
    margin: 0;
    font-weight: 400;
}

/* 詳細データトグルボタン */
.detail-toggle-btn {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    color: #666;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.detail-toggle-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #0072BC;
    color: #0072BC;
}

.detail-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
}

/* 詳細データ折りたたみエリア */
.detail-data-collapse {
    margin-top: 10px;
}

.detail-data-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

/* 詳細評価カード */
.rating-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rating-detail-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 詳細評価カードヘッダー */
.rating-detail-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    gap: 15px;
}

.rating-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.night-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.day-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.exceed-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.rating-detail-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.rating-detail-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
}

.rating-stars-small {
    font-size: 2rem;
    color: #FFD700;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 215, 0, 0.6);
    white-space: nowrap;
}

/* 詳細評価カードボディ */
.rating-detail-body {
    padding: 25px;
}

/* データ行 */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-row:last-of-type {
    border-bottom: none;
}

.data-label {
    font-weight: 500;
    color: #666;
    font-size: 0.95rem;
}

.data-value {
    font-weight: 700;
    color: #0072BC;
    font-size: 1.1rem;
}

/* おすすめカード */
.recommendation-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: 100%;
}

.recommendation-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}

.recommendation-card.recommend .recommendation-header {
    color: #03A65A;
    border-bottom-color: #03A65A;
}

.recommendation-card.caution .recommendation-header {
    color: #FFC000;
    border-bottom-color: #FFC000;
}

.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: #333;
}

.recommendation-list li::before {
    position: absolute;
    left: 0;
    top: 10px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
}

.recommendation-card.recommend .recommendation-list li::before {
    content: "\f00c";
    color: #03A65A;
}

.recommendation-card.caution .recommendation-list li::before {
    content: "\f071";
    color: #FFC000;
}

/* 時間帯アドバイスカード */
.time-advice-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    overflow: hidden;
}

.time-advice-header {
    background: linear-gradient(135deg, #0072BC 0%, #005587 100%);
    color: white;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.time-advice-body {
    padding: 25px;
}

.time-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.time-badge.quiet {
    background: linear-gradient(135deg, #03A65A 0%, #00853E 100%);
    color: white;
}

.time-badge.normal {
    background: linear-gradient(135deg, #FFC000 0%, #F08700 100%);
    color: white;
}

.time-badge.caution {
    background: linear-gradient(135deg, #DC0049 0%, #A00037 100%);
    color: white;
}

/* データソース情報 */
.data-source-info {
    background: rgba(0, 114, 188, 0.05);
    border-left: 4px solid #0072BC;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* スピナー */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* モバイル対応 (768px以下) */
@media (max-width: 768px) {
    .main-container {
        padding: 10px 0;
    }

    .glass-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .review-section {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .ai-comment-section {
        padding: 20px 15px;
    }

    .section-header h3 {
        font-size: 1.2rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .section-header-ai h3 {
        font-size: 1.4rem;
    }

    .ai-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    /* コンパクトな評価表示（モバイル） */
    .rating-display-compact {
        padding: 25px 0 20px 0;
        margin-bottom: 15px;
    }

    .total-rating-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
    }

    .rating-stars-medium {
        font-size: 2.5rem;
        letter-spacing: 5px;
        margin-bottom: 10px;
    }

    .rating-label-medium {
        font-size: 1.1rem;
    }

    .rating-separator {
        font-size: 1.1rem;
        margin: 0 6px;
    }

    .rating-score-medium {
        font-size: 1.1rem;
    }

    .rating-stars-large {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .rating-label-large {
        font-size: 1.4rem;
    }

    .rating-score-large {
        font-size: 1rem;
    }

    .ai-comment-box-large {
        padding: 18px 15px;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .ai-comment-box {
        padding: 15px;
        font-size: 0.95rem;
    }

    .detail-toggle-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .rating-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .rating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .rating-detail-title {
        font-size: 1.1rem;
    }

    .rating-detail-subtitle {
        font-size: 0.85rem;
    }

    .rating-stars-small {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    .rating-detail-body {
        padding: 15px;
    }

    .data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 0;
    }

    .data-label {
        font-size: 0.85rem;
    }

    .data-value {
        font-size: 1rem;
    }

    .comment-box {
        padding: 15px;
        font-size: 0.9rem;
    }

    .recommendation-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .recommendation-header {
        font-size: 1rem;
    }

    .recommendation-list li {
        font-size: 0.9rem;
        padding: 8px 0 8px 25px;
    }

    .time-advice-header {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .time-advice-body {
        padding: 15px;
    }

    .time-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .data-source-info {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    /* ボタンの調整 */
    .btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    /* ヘッダーの調整 */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
    }

    .d-flex.justify-content-between .btn {
        width: 100%;
    }

    h2 {
        font-size: 1.3rem !important;
    }
}

/* タブレット対応 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .rating-detail-header {
        padding: 18px;
    }

    .rating-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .rating-detail-title {
        font-size: 1.2rem;
    }
}
