/**
 * RotulMarket PRO - Custom CSS
 * Additional styles and animations
 */

/* CSS Variables for easy customization - RotulMarket Brand Colors */
:root {
    /* Brand Colors */
    --brand-purple: #2a1e2a;
    --brand-teal: #29ab87;
    --brand-pink: #d2046d;
    
    /* Primary (Teal variations) */
    --primary-50: #e6f7f2;
    --primary-100: #b3e7d9;
    --primary-200: #80d7c0;
    --primary-300: #4dc7a7;
    --primary-400: #29ab87;
    --primary-500: #29ab87;
    --primary-600: #238f72;
    --primary-700: #1d735c;
    --primary-800: #175746;
    --primary-900: #113b30;
    
    /* Accent (Pink variations) */
    --accent-50: #fce7f3;
    --accent-100: #f7b5d8;
    --accent-200: #f283bd;
    --accent-300: #ed51a2;
    --accent-400: #e81f87;
    --accent-500: #d2046d;
    --accent-600: #b0045c;
    --accent-700: #8e034a;
    --accent-800: #6c0339;
    --accent-900: #4a0227;
    
    /* Dark theme colors (Purple-based) */
    --dark-bg: #2a1e2a;
    --dark-card: #3d2e3d;
    --dark-border: #513f51;
    --dark-lighter: #655065;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--dark-card);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* Selection color */
::selection {
    background-color: var(--primary-500);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-500);
    color: white;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button ripple effect */
button, .btn {
    position: relative;
    overflow: hidden;
}

button::after, .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after, .btn:active::after {
    width: 300px;
    height: 300px;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom checkbox */
input[type="checkbox"] {
    cursor: pointer;
}

/* Pulse animation for CTA buttons */
@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

.pulse-shadow {
    animation: pulse-shadow 2s infinite;
}

/* Responsive utilities */
@media (max-width: 768px) {
    /* Adjust font sizes for mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Better spacing on mobile */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (optional for future) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Custom utility classes */
.text-balance {
    text-wrap: balance;
}

.container-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Backdrop blur effect */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Image lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Success and error message animations */
.slide-in-down {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for content areas */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

