/* ================= */
/* Liked Items Page */
/* ================= */

.liked-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Liked Header */
.liked-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a5f3c 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.liked-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.liked-title .heart-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    width: 1.5rem;
    height: 1.5rem;
}

.liked-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

/* Liked Grid */
.liked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Liked Item */
.liked-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.liked-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.liked-item:hover .item-image img {
    transform: scale(1.05);
}

.item-details {
    padding: 1.5rem;
}

.item-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-name a:hover {
    color: var(--primary);
}

.item-category {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
    text-transform: capitalize;
}

.item-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
}

.item-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.item-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.unlike-btn {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}

.unlike-btn:hover {
    background: #dc2626 !important;
    color: white !important;
    border-color: #dc2626 !important;
}

.unlike-btn .heart-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Empty State */
.empty-liked {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.empty-icon {
    margin-bottom: 1.5rem;
}

.empty-icon .heart-icon {
    width: 4rem;
    height: 4rem;
    color: #cbd5e0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.empty-liked h3 {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.empty-liked p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 2rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-actions .btn {
    min-width: 160px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .liked-title {
        font-size: 1.5rem;
    }
    
    .liked-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .item-actions {
        flex-direction: column;
    }
    
    .item-actions .btn {
        width: 100%;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .liked-header {
        padding: 1rem 0;
    }
    
    .liked-title {
        font-size: 1.25rem;
    }
    
    .item-details {
        padding: 1rem;
    }
    
    .item-name {
        font-size: 1.125rem;
    }
    
    .empty-liked {
        padding: 2rem 1rem;
    }
}

/* Animation for item removal */
.liked-item {
    transition: all 0.3s ease;
}

.liked-item.removing {
    opacity: 0;
    transform: scale(0.8);
}
