/* Enhanced Pricing and Foil/Holo Effects */

/* Improved foil effect animation */
.foil-effect {
    position: relative;
    overflow: hidden;
}

.foil-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    animation: foil-sheen 3s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes foil-sheen {
    0% {
        transform: translateX(-100%) skewX(-30deg);
    }
    100% {
        transform: translateX(200%) skewX(-30deg);
    }
}

/* Foil/Holo indicators */
.foil-indicator {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    color: #1a1a1a;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: foil-glow 2s ease-in-out infinite alternate;
}

@keyframes foil-glow {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 8px rgba(255, 215, 0, 0.3);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 16px rgba(255, 215, 0, 0.6);
    }
}

/* Holo indicator for Pokemon cards */
.holo-indicator {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    background-size: 300% 300%;
    animation: holo-rainbow 3s ease infinite, foil-glow 2s ease-in-out infinite alternate;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes holo-rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Condition badges */
.condition-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.condition-nm {
    background-color: #10b981;
    color: white;
}

.condition-lp {
    background-color: #3b82f6;
    color: white;
}

.condition-mp {
    background-color: #f59e0b;
    color: white;
}

.condition-hp {
    background-color: #ef4444;
    color: white;
}

.condition-dmg {
    background-color: #6b7280;
    color: white;
}

/* Price display enhancements */
.price-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.price-normal {
    color: #10b981;
}

.price-foil {
    color: #f59e0b;
    text-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
}

.price-holo {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Search dropdown enhancements */
.search-result-card {
    transition: all 0.2s ease;
}

.search-result-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Marketplace card enhancements */
.marketplace-card {
    transition: all 0.3s ease;
}

.marketplace-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.marketplace-card .add-to-trade-btn {
    transition: all 0.2s ease;
}

.marketplace-card:hover .add-to-trade-btn {
    transform: scale(1.1);
}

/* Trade card enhancements */
.trade-card {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.trade-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Modal enhancements */
.card-modal {
    backdrop-filter: blur(4px);
}

.card-modal .modal-content {
    animation: modal-slide-in 0.3s ease-out;
}

@keyframes modal-slide-in {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Price condition table */
.price-condition-table {
    border-collapse: separate;
    border-spacing: 0;
}

.price-condition-table th,
.price-condition-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
}

.price-condition-table th {
    background-color: #f9fafb;
    font-weight: 600;
    text-align: left;
}

.dark .price-condition-table th {
    background-color: #374151;
}

.dark .price-condition-table th,
.dark .price-condition-table td {
    border-bottom-color: #4b5563;
}

/* Toast notifications */
.toast {
    animation: toast-slide-in 0.3s ease-out;
}

@keyframes toast-slide-in {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .loading-shimmer {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .foil-indicator,
    .holo-indicator {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .condition-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .marketplace-card:hover {
        transform: none;
    }
    
    .search-result-card:hover {
        transform: none;
    }
}

/* Dark mode adjustments */
.dark .foil-effect::before {
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 60%
    );
}

.dark .price-normal {
    color: #34d399;
}

.dark .price-foil {
    color: #fbbf24;
}
