/* Custom Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

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

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

/* Animation Classes */
.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* Stagger animations */
.animate-fade-in[style*="animation-delay"] {
    opacity: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Hover Effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* Form Styles - Amazon Orange Focus */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

/* Gradient Text */
.bg-gradient-to-r {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Hover Effects */
.group:hover {
    transition: all 0.3s ease;
}

/* Counter Animation */
.counter {
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation: fadeIn 0.6s ease-out forwards !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Scrollbar - Amazon Orange */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #FF9900;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E68A00;
}

/* Utility Classes */
.scale-102 {
    transform: scale(1.02);
}

.hover\:scale-102:hover {
    transform: scale(1.02);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-4px);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-8px);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

button,
a {
    transition: all 0.3s ease;
}

/* Focus States - Amazon Orange */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #FF9900;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Amazon Style Enhancements */

/* Shadow effects for Amazon-like depth */
.amazon-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.amazon-shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Orange accent colors */
.amazon-orange {
    color: #FF9900;
}

.amazon-orange-bg {
    background-color: #FF9900;
}

.amazon-orange-border {
    border-color: #FF9900;
}

/* Dark blue for contrast (Amazon secondary) */
.amazon-dark {
    color: #232F3E;
}

.amazon-dark-bg {
    background-color: #232F3E;
}

/* Light gray background (Amazon style) */
.amazon-light-bg {
    background-color: #F5F5F5;
}

/* Amazon button styles */
.amazon-btn {
    background-color: #FF9900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amazon-btn:hover {
    background-color: #E68A00;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.amazon-btn:active {
    transform: scale(0.98);
}

/* Amazon card style */
.amazon-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px;
    transition: all 0.3s ease;
}

.amazon-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Amazon text styles */
.amazon-heading {
    color: #232F3E;
    font-weight: 700;
}

.amazon-subheading {
    color: #565959;
    font-weight: 500;
}

/* Price style (Amazon) */
.amazon-price {
    color: #B12704;
    font-size: 24px;
    font-weight: 700;
}

/* Star rating */
.amazon-stars {
    color: #FFC200;
}

/* Link styles */
a {
    color: #0066CC;
    text-decoration: none;
}

a:hover {
    color: #FF9900;
    text-decoration: underline;
}

/* Border radius (Amazon uses subtle rounded corners) */
.amazon-rounded {
    border-radius: 4px;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
}

/* Amazon-style input fields */
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: #FF9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* Checkbox and radio styles */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #FF9900;
}

/* Breadcrumb style */
.breadcrumb {
    color: #565959;
    font-size: 12px;
}

.breadcrumb a {
    color: #0066CC;
}

.breadcrumb a:hover {
    color: #FF9900;
}
