/* Custom styles for Top Truck Parts & Accessories */

/* Base reset enhancements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent text zoom on input focus in iOS */
input, textarea, select {
    font-size: 16px;
}

/* Geometric accent animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .geo-circle, .geo-square {
        animation: float 8s ease-in-out infinite;
    }
}

/* Card image overlay gradient */
.card-lift::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
}

.card-lift:hover::before {
    opacity: 1;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: #f8fafc !important;
}

/* Print styles */
@media print {
    nav, .geo-circle, .geo-square, .dot-pattern {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
