/* ========================================
   Detail Page Shared Styles
   Used by: Food/Details, Travel/Details, Products/Details
   ======================================== */

/* Grid 資訊顯示系統 */
.info-section {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.section-title {
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .section-title i {
        font-size: 1.25rem;
    }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

    .info-item:hover {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        transform: translateY(-2px);
    }

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    word-wrap: break-word;
}

/* 標籤系統 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.info-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

    .tag-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    }

    .tag-badge i {
        font-size: 0.75rem;
    }

/* 評論區域 */
.review-section {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    margin-bottom: 1rem;
}

.review-text {
    color: #374151;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
}

/* 優缺點區域 */
.pros-cons-section {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    margin-bottom: 1rem;
}

.pros-text,
.cons-text {
    color: #374151;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
}

/* Video Section */
.video-section {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    margin-top: 1rem;
}

    .video-section .section-title {
        margin-bottom: 1rem;
    }

    .video-section iframe {
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

/* Comments Section */
.comments-section {
    margin-top: 2rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease;
}

    .comment-card:hover {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
        border-color: #667eea;
    }

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: #374151;
}

.comment-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ========================================
   Dishes Display Styles (今日點餐紀錄)
   ======================================== */

.dishes-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dish-display-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

    .dish-display-card:hover {
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        transform: translateY(-2px);
    }

.dish-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.dish-display-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
}

.dish-display-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.dish-display-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dish-display-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
}

    .dish-display-rating i {
        font-size: 0.875rem;
    }

    .dish-display-rating .rating-text {
        margin-left: 0.5rem;
        font-weight: 600;
        color: #6b7280;
        font-size: 0.875rem;
    }

.dish-display-notes {
    margin: 0;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

    .dish-display-notes i {
        color: #667eea;
        margin-right: 0.25rem;
    }

/* Dishes Summary Styles */
.dishes-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

    .summary-card:hover {
        border-color: #667eea;
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
    }

    .summary-card i {
        font-size: 2rem;
        color: #667eea;
    }

    .summary-card div {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .summary-card strong {
        font-size: 0.875rem;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .summary-card span {
        font-size: 1.25rem;
        font-weight: 700;
        color: #374151;
    }

    .summary-card.highlight {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-color: #fbbf24;
    }

        .summary-card.highlight i {
            color: #f59e0b;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 0.875rem;
    }

    .info-icon {
        font-size: 1.5rem;
    }

    .dishes-display-grid {
        grid-template-columns: 1fr;
    }

    .dishes-summary {
        grid-template-columns: 1fr;
    }
}
