/* Price Threshold Modal Styles (Copied from tracking page) */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-inner {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 580px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

/* Toast notification styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10001;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast.remove {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.toast.remove {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Product Page Specific Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f8fafc; 
}

.price-badge { 
    background: #dcfce7; 
    color: #166534; 
    padding: 2px 8px; 
    border-radius: 6px; 
    font-size: 0.85rem; 
    font-weight: 600; 
}

.alert-btn { 
    transition: all 0.2s; 
}

.alert-btn:hover { 
    background-color: #eff6ff; 
    color: #2563eb; 
}

/* Heart Animation */
.heart-btn {
    transition: all 0.3s ease;
    color: #94a3b8;
    border-color: #e2e8f0 !important;
}

.heart-btn:active { 
    transform: scale(0.9); 
}

.heart-btn.active {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.heart-btn.active .heart-icon {
    fill: #ef4444;
    stroke: #ef4444;
}

.heart-icon {
    transition: all 0.3s ease;
}

/* Deal Score Gauge Styles */
.gauge-wrapper-analysis {
    position: relative;
    width: 200px;
    height: 110px;
    margin: 0 auto 10px auto;
    overflow: hidden;
}

.gauge-arc-analysis {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-sizing: border-box;
    background: conic-gradient(
        from 270deg,
        #ff3b3b 0deg,
        #ff9f43 36deg,
        #FBBF24 72deg,
        #A3E635 108deg,
        #2ecc71 144deg,
        #2ecc71 180deg,
        transparent 180deg
    );
    -webkit-mask: radial-gradient(transparent 60%, black 61%);
    mask: radial-gradient(transparent 60%, black 61%);
}

.gauge-needle-analysis {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 70px solid #2196F3;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    z-index: 15;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-pivot-analysis {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #2196F3;
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* FAQ Styles */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Content Visibility Optimization (Mobile CPU Saver) */
.cv-auto {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

/* Screen Reader Only (for table caption) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mobile Sticky Footer (Conversion Booster) */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 12px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: flex;
    gap: 12px;
}

.mobile-sticky-btn {
    flex: 1;
    font-weight: bold;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-sticky-btn-outline {
    border: 2px solid #4f46e5;
    color: #4f46e5;
    background: transparent;
}

.mobile-sticky-btn-outline:hover {
    background: #eef2ff;
}

.mobile-sticky-btn-primary {
    background: #146EB4;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(20, 110, 180, 0.3);
    border: none;
    text-decoration: none;
}

.mobile-sticky-btn-primary:hover {
    background: #0D5A94;
}

/* Hide desktop buttons on mobile (below 768px) */
@media (max-width: 767px) {
    .mobile-hide-btn {
        display: none !important;
    }
    
    /* Graph header responsive layout */
    .graph-header-mobile {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    /* Hide full title on mobile */
    .graph-title-full {
        display: none;
    }
    
    /* Show short title on mobile */
    .graph-title-mobile {
        display: inline;
    }
}

/* SEO-only text (hidden from view but visible to search engines) */
.seo-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Desktop: Hide mobile title */
@media (min-width: 768px) {
    .graph-title-mobile {
        display: none;
    }
    
    .graph-title-full {
        display: inline;
    }
}

/* Hide sticky footer on desktop (768px and above) */
@media (min-width: 768px) {
    .mobile-sticky-footer {
        display: none;
    }
}
