/**
 * Advanced Gifts Styles
 * AJAX, Wishlist, Notifications, Interactive Elements
 *
 * @package Claue
 * @version 1.0.0
 */

/* ==========================================
   AJAX LOADING STYLES
   ========================================== */

.gifts-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    border-radius: 8px;
}

.gifts-loading i {
    font-size: 2rem;
    color: #56cfe1;
    margin-right: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   NOTIFICATION STYLES
   ========================================== */

.gifts-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.gifts-notification.success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}

.gifts-notification.error {
    background: #dc3545;
    border-left: 4px solid #c82333;
}

.gifts-notification.info {
    background: #17a2b8;
    border-left: 4px solid #138496;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* ==========================================
   WISHLIST BUTTON STYLES
   ========================================== */

.gift-wishlist-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.gift-wishlist-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.gift-wishlist-btn.in-wishlist {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #ffffff;
}

.gift-wishlist-btn.in-wishlist:hover {
    background: #ff5252;
    border-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.gift-wishlist-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.gift-wishlist-btn:hover i {
    transform: scale(1.1);
}

/* ==========================================
   PRICE RANGE SLIDER STYLES
   ========================================== */

.price-range-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.price-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-range-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.price-range-values {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.price-range-slider {
    margin: 20px 0;
}

.ui-slider {
    position: relative;
    text-align: left;
    background: #e9ecef;
    border-radius: 4px;
    height: 6px;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    background: #56cfe1;
    border-radius: 4px;
    height: 100%;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: #ffffff;
    border: 2px solid #56cfe1;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(86, 207, 225, 0.3);
    transition: all 0.3s ease;
}

.ui-slider .ui-slider-handle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(86, 207, 225, 0.4);
}

.ui-slider .ui-slider-handle.ui-state-active {
    background: #56cfe1;
    border-color: #56cfe1;
}

/* ==========================================
   SEARCH AUTOCOMPLETE STYLES
   ========================================== */

.ui-autocomplete {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.ui-autocomplete .ui-menu-item {
    padding: 0;
    border: none;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background: #f8f9fa;
    color: #56cfe1;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-focus {
    background: #f8f9fa;
    color: #56cfe1;
}

/* ==========================================
   LOAD MORE BUTTON STYLES
   ========================================== */

.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: #56cfe1;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: #4bb8c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(86, 207, 225, 0.3);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================
   RESULTS COUNT STYLES
   ========================================== */

.gifts-results-count {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* ==========================================
   SHARE BUTTONS STYLES
   ========================================== */

.gift-share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.gift-share-btn {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gift-share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}

.gift-share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #ffffff;
}

.gift-share-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
}

.gift-share-btn.copy:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

/* ==========================================
   FILTER ANIMATIONS
   ========================================== */

.gifts-grid {
    transition: opacity 0.3s ease;
}

.gifts-grid.filtering {
    opacity: 0.6;
}

.gift-card {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 768px) {
    .gifts-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 0.8rem;
    }
    
    .price-range-container {
        padding: 15px;
    }
    
    .gift-wishlist-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .load-more-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    .gift-share-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .gift-share-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gifts-loading {
        padding: 20px;
    }
    
    .gifts-loading i {
        font-size: 1.5rem;
    }
    
    .price-range-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==========================================
   ACCESSIBILITY STYLES
   ========================================== */

.gift-wishlist-btn:focus,
.load-more-btn:focus,
.gift-share-btn:focus {
    outline: 2px solid #56cfe1;
    outline-offset: 2px;
}

.ui-slider .ui-slider-handle:focus {
    outline: 2px solid #56cfe1;
    outline-offset: 2px;
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .gift-wishlist-btn,
    .load-more-btn,
    .gift-share-btn,
    .gifts-notification {
        display: none !important;
    }
} 