/**
 * 清單詳情頁面樣式
 */

/* 清單頭部 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 32px;
}

.list-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.list-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 600px;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.list-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.list-date i,
.list-count i {
    margin-right: 6px;
    color: #999;
}

/* 操作按鈕 */
.list-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #fff5f5;
    color: #d93025;
}

.btn-danger:hover {
    background: #fce8e6;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 餐廳列表 */
.list-restaurants {
    padding-bottom: 40px;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* 移除按鈕 */
.remove-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.restaurant-card:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: #d93025;
}

/* 備註 */
.item-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.item-note i {
    color: #999;
    margin-right: 6px;
    font-size: 11px;
}

/* 空狀態 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* 響應式 */
@media (max-width: 768px) {
    .list-header {
        flex-direction: column;
        padding: 24px 0;
    }
    
    .list-info h1 {
        font-size: 24px;
    }
    
    .list-actions {
        width: 100%;
    }
    
    .list-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .restaurant-grid {
        grid-template-columns: 1fr;
    }
}
