/* ===== WISHLIST STYLES ===== */
/* These styles extend domus.css for the wishlist page */

/* Wishlist Controls */
.wishlist-controls {
    margin-bottom: 30px;
}

.filter-sort-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--primary-color);
}

.active-filter-pill .remove-filter {
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    font-size: 10px;
    transition: all 0.2s;
}

.active-filter-pill .remove-filter:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.view-sort-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-toggles {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.btn-view-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: #aaa;
    transition: all var(--transition-speed);
}

.btn-view-toggle.active {
    background: var(--primary-color);
    color: #000;
}

.btn-view-toggle:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    color: #aaa;
    font-size: 14px;
}

.sort-dropdown select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-color);
    padding: 8px 30px 8px 12px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcc00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.btn-filter {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed);
}

.btn-filter:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.2);
}

.wishlist-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.stat-pill i {
    font-size: 14px;
}

.btn-add-wish {
    margin-left: auto;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
}

.btn-add-wish:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Filter Panel */
.filter-panel {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    animation: slideDown 0.3s ease-out;
}

.filter-panel h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.filter-column h4 {
    color: var(--light-color);
    font-size: 16px;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-options label:hover {
    color: var(--light-color);
}

.filter-options input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-options input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-options input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: 700;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-clear-filters {
    padding: 8px 16px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 20px;
    transition: all var(--transition-speed);
}

.btn-clear-filters:hover {
    background: rgba(231, 76, 60, 0.2);
}

.btn-apply-filters {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 600;
    border-radius: 20px;
    transition: all var(--transition-speed);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.wishlist-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    animation: fadeIn 0.5s ease-out forwards;
    position: relative;
}

.wishlist-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 204, 0, 0.2);
}

/* Coin Images */
.coin-images {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.coin-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.wishlist-item:hover .coin-image {
    transform: scale(1.05);
}

/* Priority Badges */
.priority-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 5;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.priority-high {
    background: linear-gradient(135deg, #ffcc00, #ffa500);
}

.priority-medium {
    background: linear-gradient(135deg, #ffcc00, #c8a200);
}

.priority-low {
    background: linear-gradient(135deg, #c8a200, #a88700);
    color: #fff;
}

.priority-badge i {
    margin-right: 2px;
}

.priority-badge i:last-child {
    margin-right: 0;
}

/* Wishlist Item Info */
.wishlist-info {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wishlist-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--light-color);
    font-weight: 600;
}

.coin-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
}

.coin-quick-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.coin-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

/* Availability Status */
.availability-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #aaa;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.availability-status.available {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

/* Price Alert Section */
.price-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.max-price {
    font-size: 14px;
    color: var(--light-color);
    font-weight: 600;
}

.alert-status {
    color: var(--primary-color);
    font-size: 16px;
}

.alert-status i.fa-bell-slash {
    color: #aaa;
    opacity: 0.7;
}

/* Wishlist Actions */
.wishlist-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 20px;
}

.btn-view-wish,
.btn-edit-wish,
.btn-mark-acquired,
.btn-remove-wish {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.btn-view-wish {
    background: var(--gradient-primary);
    color: #000;
}

.btn-edit-wish {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.btn-mark-acquired {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.btn-remove-wish {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.btn-view-wish:hover,
.btn-edit-wish:hover,
.btn-mark-acquired:hover,
.btn-remove-wish:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-edit-wish:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.btn-mark-acquired:hover {
    background: rgba(39, 174, 96, 0.2);
}

.btn-remove-wish:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* List View for Wishlist */
.wishlist-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wishlist-grid.list-view .wishlist-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    height: auto;
    align-items: center;
}

.wishlist-grid.list-view .coin-images {
    height: 120px;
    width: 120px;
}

.wishlist-grid.list-view .wishlist-info {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.wishlist-grid.list-view .price-alert {
    padding: 0 20px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    width: 120px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.wishlist-grid.list-view .wishlist-actions {
    padding: 0 20px;
    width: 120px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Loading Placeholder */
.loading-placeholder {
    opacity: 0.7;
    pointer-events: none;
}

.loading-placeholder .placeholder {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.placeholder-line {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.placeholder-line:last-child {
    width: 60%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: var(--card-border-radius);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-icon {
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.4;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--light-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: #aaa;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.wishlist-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    transition: all var(--transition-speed);
}

.page-nav:not([disabled]):hover {
    background: rgba(255, 204, 0, 0.1);
    color: var(--primary-color);
    border-color: rgba(255, 204, 0, 0.2);
}

.page-nav[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    transition: all var(--transition-speed);
}

.page-num:hover:not(.active):not([disabled]) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
}

.page-num.active {
    background: var(--primary-color);
    color: #000;
    font-weight: 600;
}

.page-size-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size-select label {
    color: #aaa;
    font-size: 14px;
}

.page-size-select select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-color);
    padding: 8px 30px 8px 12px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcc00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    }

    /* Animations */
    @keyframes fadeIn {
        0% { opacity: 0; transform: translateY(10px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes slideDown {
        0% { opacity: 0; transform: translateY(-20px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .filter-sort-container {
            flex-direction: column;
            gap: 15px;
        }
        
        .view-sort-section {
            width: 100%;
            justify-content: space-between;
        }
        
        .wishlist-stats {
            flex-wrap: wrap;
        }
        
        .btn-add-wish {
            margin-left: 0;
            width: 100%;
            justify-content: center;
            margin-top: 15px;
        }
        
        .filter-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .wishlist-grid.list-view .wishlist-item {
            grid-template-columns: 1fr;
        }
        
        .wishlist-grid.list-view .coin-images {
            width: 100%;
            height: 180px;
        }
        
        .wishlist-grid.list-view .price-alert,
        .wishlist-grid.list-view .wishlist-actions {
            border-right: none;
            width: 100%;
            padding: 15px 20px;
        }
        
        .wishlist-pagination {
            flex-wrap: wrap;
        }
    }