/* SpinItUp Landing Page - Additional Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2563eb;
    animation: spin 1s ease-in-out infinite;
}

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

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Success message */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

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

/* Error message */
.error-message {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

/* Pulse animation for CTAs */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu (if needed) */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Tailwind CDN fallback palette for custom utility classes */
:root {
    --stay-primary: #0D7377;
    --stay-primary-hover: #0A5F62;
    --stay-secondary: #E8704C;
    --stay-secondary-hover: #D45E3A;
    --stay-accent: #F4C430;
    --stay-accent-hover: #E0B020;
    --stay-charcoal: #2D2D2D;
    --stay-darkgray: #5A5A5A;
    --stay-midgray: #BDBDBD;
    --stay-lightgray: #F5F5F5;
    --stay-offwhite: #FAFAFA;
}

.text-primary { color: var(--stay-primary) !important; }
.text-primary-hover { color: var(--stay-primary-hover) !important; }
.text-secondary { color: var(--stay-secondary) !important; }
.text-accent { color: var(--stay-accent) !important; }
.text-accent-hover { color: var(--stay-accent-hover) !important; }
.text-charcoal { color: var(--stay-charcoal) !important; }
.text-darkgray { color: var(--stay-darkgray) !important; }
.text-midgray { color: var(--stay-midgray) !important; }
.text-lightgray { color: var(--stay-lightgray) !important; }
.text-offwhite { color: var(--stay-offwhite) !important; }

.bg-primary { background-color: var(--stay-primary) !important; }
.bg-secondary { background-color: var(--stay-secondary) !important; }
.bg-accent { background-color: var(--stay-accent) !important; }
.bg-charcoal { background-color: var(--stay-charcoal) !important; }
.bg-darkgray { background-color: var(--stay-darkgray) !important; }
.bg-midgray { background-color: var(--stay-midgray) !important; }
.bg-lightgray { background-color: var(--stay-lightgray) !important; }
.bg-offwhite { background-color: var(--stay-offwhite) !important; }

.hover\:bg-primary-hover:hover { background-color: var(--stay-primary-hover) !important; }
.hover\:bg-secondary-hover:hover { background-color: var(--stay-secondary-hover) !important; }
.hover\:bg-accent-hover:hover { background-color: var(--stay-accent-hover) !important; }
.hover\:text-accent-hover:hover { color: var(--stay-accent-hover) !important; }
.hover\:text-primary-hover:hover { color: var(--stay-primary-hover) !important; }

.border-primary { border-color: var(--stay-primary) !important; }
.border-secondary { border-color: var(--stay-secondary) !important; }
.border-lightgray { border-color: var(--stay-lightgray) !important; }

.bg-white\/80 { background-color: rgba(255,255,255,0.8) !important; }
.bg-white\/20 { background-color: rgba(255,255,255,0.2) !important; }
.bg-black\/60 { background-color: rgba(0,0,0,0.6) !important; }
.bg-black\/40 { background-color: rgba(0,0,0,0.4) !important; }

.text-white\/80 { color: rgba(255,255,255,0.8) !important; }
.text-white\/60 { color: rgba(255,255,255,0.6) !important; }

.backdrop-blur-sm { backdrop-filter: blur(8px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/** ensure FAQ accordion matches Tailwind transitions when CDN config fails */
.faq-answer { transition: max-height 0.3s ease-in-out; }
.faq-icon { transition: transform 0.3s ease-in-out; }


.btn-primary {
    background-color: var(--stay-primary);
    color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: var(--stay-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}
