/* Wishlist Styles */

.wishlist-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.wishlist-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 3rem;
}

.stat-content h3 {
    font-size: 1.8rem;
    margin: 0 0 0.25rem 0;
}

.stat-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Priority Filters */
.priority-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--surface);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.wish-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--priority-color);
}

.wish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.wish-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.wish-info h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.wish-info .manufacturer {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.priority-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.priority-badge.critical {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.priority-badge.high {
    background: rgba(255, 109, 0, 0.2);
    color: #ff6d00;
}

.priority-badge.medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.priority-badge.low {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* Progress Bar */
.progress-section {
    margin: 1.5rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar-container {
    height: 12px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-amounts {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.amount-saved {
    color: var(--success);
    font-weight: 600;
}

.amount-target {
    color: var(--primary);
    font-weight: 600;
}

/* Wish Notes */
.wish-notes {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Wish Actions */
.wish-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.wish-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-acquire {
    background: var(--success);
    color: white;
}

.btn-acquire:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-edit-wish {
    background: var(--primary);
    color: white;
}

.btn-edit-wish:hover {
    background: var(--primary-dark);
}

.btn-delete-wish {
    background: var(--danger);
    color: white;
}

.btn-delete-wish:hover {
    background: #c82333;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-container {
        padding: 1rem;
    }

    .wishlist-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .wish-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wishlist-header h1 {
        font-size: 1.4rem;
    }

    .wish-card {
        padding: 0.75rem;
    }

    .wish-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .wish-priority-badge {
        font-size: 0.7rem;
    }

    .wish-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
    }
}
