/* Item Shop Styles - Gaming Theme */

.gift-shop-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: white;
}

/* Header Styles */
.gift-shop-header {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    position: relative;
    overflow: hidden;
}

.gift-shop-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Title Styles */
.gift-shop-title {
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gift-shop-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* Filter Section */
.gift-filter-section {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
}

.gift-filter-button {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-weight: 500;
}

.gift-filter-button:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: #f97316;
    color: white;
    transform: translateY(-1px);
}

.gift-filter-button.active {
    background: linear-gradient(135deg, #f97316, #ec4899);
    border-color: #f97316;
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Item Cards */
.gift-item-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Special Card Variants */
.gift-item-card.has-stock {
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.gift-item-card.has-stock::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(236, 72, 153, 0.1));
}

.gift-item-card.has-expiry {
    border: 1px solid rgba(251, 146, 60, 0.4);
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.1);
}

.gift-item-card.has-expiry::before {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(236, 72, 153, 0.1));
}

.gift-item-card.has-both {
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.1);
    background: linear-gradient(145deg,
        rgba(34, 197, 94, 0.05),
        rgba(251, 146, 60, 0.05)
    );
}

.gift-item-card.has-both::before {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.1),
        rgba(249, 115, 22, 0.1),
        rgba(251, 146, 60, 0.1)
    );
}

.gift-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.gift-item-card:hover::before {
    opacity: 1;
}

.gift-item-card:hover {
    transform: translateY(-8px);
    border-color: #f97316;
    box-shadow:
        0 20px 40px rgba(249, 115, 22, 0.2),
        0 0 20px rgba(249, 115, 22, 0.1);
}

/* Special hover effects for card variants */
.gift-item-card.has-stock:hover {
    box-shadow:
        0 20px 40px rgba(34, 197, 94, 0.2),
        0 0 20px rgba(34, 197, 94, 0.1);
}

.gift-item-card.has-expiry:hover {
    box-shadow:
        0 20px 40px rgba(251, 146, 60, 0.2),
        0 0 20px rgba(251, 146, 60, 0.1);
}

.gift-item-card.has-both:hover {
    box-shadow:
        0 20px 40px rgba(249, 115, 22, 0.2),
        0 0 20px rgba(249, 115, 22, 0.1);
}

/* Stock and Expiry Counters for Gift Shop */
.gift-counter-badge {
    position: absolute;
    top: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    border: 1px solid;
    z-index: 10;
}

.gift-stock-counter {
    left: 12px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.gift-stock-counter.unlimited {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.4);
}

.gift-stock-counter.low {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.gift-expiry-counter {
    right: 12px;
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.4);
}

.gift-expiry-counter.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Item Image Container */
.gift-item-image-container {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.gift-item-rarity-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gift-item-card:hover .gift-item-rarity-glow {
    opacity: 1;
}

/* Item Name */
.gift-item-name {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Item Type Badge */
.gift-item-type-badge {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stock Status */
.gift-stock-available {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gift-stock-low {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gift-stock-out {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Price Display */
.gift-price-display {
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Quantity Controls */
.gift-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    padding: 4px;
}

.gift-quantity-btn {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gift-quantity-btn:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.4);
    border-color: #f97316;
    transform: scale(1.1);
}

.gift-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gift-quantity-input {
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    width: 60px;
    font-weight: 600;
}

/* Buy Button */
.gift-buy-button {
    background: linear-gradient(135deg, #f97316, #ec4899);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gift-buy-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea580c, #db2777);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.gift-buy-button:disabled {
    background: rgba(107, 114, 128, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Details Toggle */
.gift-details-toggle {
    background: transparent;
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.gift-details-toggle:hover {
    border-color: #f97316;
    color: white;
    background: rgba(249, 115, 22, 0.1);
}

/* Item Details */
.gift-item-details {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.gift-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.gift-detail-item:last-child {
    border-bottom: none;
}

.gift-detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.gift-detail-value {
    color: white;
    font-weight: 600;
}

/* Expiry Warning */
.gift-expiry-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Total Price */
.gift-total-price {
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Reset Button */
.gift-reset-button {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border: none;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gift-reset-button:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
}

/* Search Input */
.gift-search-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: white;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
}

.gift-search-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.gift-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Loading State */
.gift-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gift-shop-title {
        font-size: 2rem;
    }

    .gift-shop-subtitle {
        font-size: 1rem;
    }

    .gift-filter-section {
        padding: 16px;
    }

    .gift-item-card {
        padding: 16px;
    }
}
