/* ============================================
   LUCKMETRIC - PRODUCTION STYLES
   Client-Side Architecture Optimized
   ============================================ */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #111827;
    color: #F9FAFB;
}

/* ============================================
   STRICT IMAGE CONTAINERS - NO OVERFLOW
   ============================================ */

.img-wrap {
    width: 100%;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    overflow: hidden;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    position: relative;
    flex-shrink: 0;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: none;
    outline: none;
    display: block;
    -webkit-user-drag: none;
}

.img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #6b7280;
}

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

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

.animate-marquee {
    animation: marquee 25s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

.result-card {
    animation: slideUp 0.3s ease-out forwards;
}

/* ============================================
   PLATFORM BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-amazon { background: #FF9900; color: #000; }
.badge-flipkart { background: #2874F0; color: #fff; }
.badge-myntra { background: #FF3F6C; color: #fff; }
.badge-ajio { background: #2C4152; color: #fff; }
.badge-meesho { background: #F43397; color: #fff; }
.badge-db { background: #10B981; color: #fff; }
.badge-live { background: #3B82F6; color: #fff; }

/* ============================================
   PRICE DISPLAY
   ============================================ */

.price-tag {
    font-weight: 800;
    font-size: 1.125rem;
    color: #F97316;
    letter-spacing: -0.025em;
}

.price-best {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   TOUCH OPTIMIZATIONS (Mobile)
   ============================================ */

button, input, a {
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.min-h-touch {
    min-height: 44px;
    min-width: 44px;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #F97316;
    border-radius: 2px;
}

/* ============================================
   UTILITY
   ============================================ */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gradient-orange {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.hidden {
    display: none !important;
}

/* ============================================
   RESULT CARDS
   ============================================ */

.result-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.result-item:active {
    transform: scale(0.98);
    border-color: #F97316;
}

/* ============================================
   SEARCH INPUT FOCUS
   ============================================ */

input:focus {
    outline: none;
}

/* ============================================
   LOADING SKELETON
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #374151 25%, #4B5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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