/* BorrowCube main styles
 * Custom styles beyond Tailwind utilities
 * Loaded after Tailwind CDN
 */

:root {
    --bc-blue: #2563EB;
    --bc-blue-dark: #1D4ED8;
    --bc-orange: #F97316;
    --bc-slate-900: #0F172A;
    --bc-slate-700: #334155;
    --bc-slate-500: #64748B;
    --bc-slate-200: #E2E8F0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--bc-slate-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display headings */
.font-display {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Property tab buttons */
.bc-tab {
    background: white;
    color: var(--bc-slate-700);
    border: 1px solid var(--bc-slate-200);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}
.bc-tab:hover {
    border-color: var(--bc-blue);
    color: var(--bc-blue);
}
.bc-tab.active {
    background: var(--bc-blue);
    color: white;
    border-color: var(--bc-blue);
}

/* Range slider */
.bc-range {
    width: 100%;
    height: 6px;
    background: var(--bc-slate-200);
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}
.bc-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--bc-blue);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s;
}
.bc-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.bc-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--bc-blue);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* Service card hover */
.bc-service-card {
    position: relative;
    overflow: hidden;
}
.bc-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--bc-blue), var(--bc-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.bc-service-card:hover::before {
    transform: scaleX(1);
}

/* FAQ chevron */
.bc-faq summary::-webkit-details-marker {
    display: none;
}
.bc-faq summary {
    position: relative;
    padding-right: 30px;
}

/* Animations */
@keyframes bc-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.bc-fade-in {
    animation: bc-fade-in 0.4s ease-out;
}

@keyframes bc-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.animate-pulse {
    animation: bc-pulse-dot 2s ease-in-out infinite;
}

/* Form focus */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Bank card hover */
.bc-bank-card {
    transition: all 0.2s;
}
.bc-bank-card:hover {
    transform: translateY(-2px);
}

/* Property type selected styling */
.bc-property-type-selected {
    border-color: var(--bc-blue) !important;
    background: var(--bc-blue) !important;
    color: white !important;
}

/* Print styles */
@media print {
    .bc-header, .bc-footer, .bc-mobile-nav, .bc-email-form, button {
        display: none !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
