/* ==================== 收藏列表系统样式 (重新实现) ==================== */

/* 收藏模态窗口 - 在app-container内部，完全覆盖canvas + search section + bottom-functions */
.favorites-modal {
    position: absolute;
    top: 66px; /* 调整为只保留状态栏，从导航栏下方开始 */
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.favorites-modal.show {
    display: flex;
}

/* 收藏列表头部 */
.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.favorites-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-title i {
    color: #FFD700;
    font-size: 18px;
}

.favorites-count {
    color: #666;
    font-weight: 400;
    font-size: 16px;
}

.favorites-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.favorites-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* 收藏列表内容区域 */
.favorites-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #f8f9fa;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 收藏项目卡片 */
.favorite-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #007AFF;
}

.favorite-item:active {
    transform: translateY(0);
}

/* 收藏项目信息 */
.favorite-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorite-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-name i {
    color: #007AFF;
    font-size: 14px;
}

.favorite-details {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.favorite-location {
    font-weight: 500;
    color: #333;
}

/* 收藏项目操作区域 */
.favorite-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.favorite-action-buttons {
    display: flex;
    gap: 16px;
}

.favorite-action-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.favorite-action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.favorite-action-btn.share-btn:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

.favorite-action-btn.delete-btn:hover {
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.1);
}

.favorite-click-hint {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* 空状态 */
.favorites-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.favorites-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.favorites-empty h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #666;
}

.favorites-empty p {
    font-size: 14px;
    margin: 0;
    color: #999;
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorite-item {
    animation: slideInUp 0.3s ease-out;
}

.favorite-item:nth-child(1) { animation-delay: 0.1s; }
.favorite-item:nth-child(2) { animation-delay: 0.2s; }
.favorite-item:nth-child(3) { animation-delay: 0.3s; }

/* 响应式设计 */
@media (max-width: 480px) {
    .favorites-header {
        padding: 12px 16px;
    }
    
    .favorites-title {
        font-size: 18px;
    }
    
    .favorites-content {
        padding: 12px 16px;
    }
    
    .favorite-item {
        padding: 12px;
    }
    
    .favorite-name {
        font-size: 15px;
    }
    
    .favorite-details {
        font-size: 13px;
    }
}

/* 滚动条样式 */
.favorites-content::-webkit-scrollbar {
    width: 6px;
}

.favorites-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.favorites-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.favorites-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}