/* Custom Styles for Shopify Risk Detector */

@keyframes skeleton-loading {
    0% { background-color: rgba(30, 41, 59, 0.5); }
    50% { background-color: rgba(51, 65, 85, 0.5); }
    100% { background-color: rgba(30, 41, 59, 0.5); }
}

.skeleton {
    animation: skeleton-loading 1.5s infinite linear;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #1e293b transparent;
}

/* Glassmorphism utility */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Score Animation */
#score-circle {
    transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section visibility */
#results-section {
    transition: opacity 0.5s ease-in-out;
}

/* Buttons */
#submit-btn:not(:disabled):hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Responsive fixes */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem !important;
        line-height: 2.75rem !important;
    }
}

/* Product list scroll area */
#image-duplicates {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Trustpilot coloring */
.tp-green { color: #00b67a; }
.tp-bg-green { background-color: rgba(0, 182, 122, 0.1); }

/* Score Gauge Colors */
.score-safe { color: #10b981; }
.score-warning { color: #f59e0b; }
.score-danger { color: #ef4444; }

.score-bg-safe { stroke: #10b981; }
.score-bg-warning { stroke: #f59e0b; }
.score-bg-danger { stroke: #ef4444; }
