/* assets/css/style.css - Resokey Brand Design System & Premium Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #00005B;
    --primary-light: #1A1A80;
    --primary-dark: #00003B;
    --accent: #E5A93C;
    --accent-hover: #C58E2B;
    --accent-light: #FFF9EE;
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --info: #0EA5E9;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --grad-premium: linear-gradient(135deg, var(--primary) 0%, #1E1B4B 50%, #311042 100%);
    --grad-gold: linear-gradient(135deg, #FCD34D 0%, var(--accent) 100%);
    
    /* Neutrals */
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-600: #4B5563;
    --neutral-800: #1F2937;
    --neutral-900: #111827;
    
    /* UI Values */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 91, 0.25);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets and defaults */
body {
    font-family: var(--font-body);
    background-color: var(--neutral-50);
    color: var(--neutral-800);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 91, 0.2);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 91, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--neutral-900);
    font-weight: 700;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(229, 169, 60, 0.2);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--neutral-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(229, 169, 60, 0.4);
}

/* Custom Interactive Cards */
.property-card {
    transition: var(--transition);
    background: white;
    border: 1px solid var(--neutral-100);
    box-shadow: var(--shadow-sm);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 91, 0.15);
}

.property-card img {
    transition: var(--transition);
}

.property-card:hover img {
    transform: scale(1.06);
}

/* Custom Input Styling with Glow */
.input-premium {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    background: white;
}

.input-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 91, 0.1);
}

/* Custom Navigation links animation */
.nav-link {
    position: relative;
    color: var(--neutral-300);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

/* Tabs Switchers */
.tab-btn {
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--primary);
    color: white;
    border-bottom: 3px solid var(--accent);
}

/* Micro-Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(229, 169, 60, 0.4); }
    50% { box-shadow: 0 0 15px rgba(229, 169, 60, 0.8); }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-glow-button {
    animation: pulseGlow 2.5s infinite;
}

.ai-glow-button:hover {
    animation: none;
}

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

::-webkit-scrollbar-track {
    background: var(--neutral-50);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-sm);
}

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

/* Premium Tags */
.badge-purpose {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-buy { background-color: #DBEAFE; color: #1E40AF; }
.badge-rent { background-color: #F3E8FF; color: #6B21A8; }
.badge-sell { background-color: #E0F2FE; color: #075985; }
.badge-mortgage { background-color: #FEF3C7; color: #92400E; }
.badge-design { background-color: #D1FAE5; color: #065F46; }

/* Modal overlay animations */
.modal-overlay {
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

/* Responsive Grid adjustment */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

/* Navigation Drawer Scrollability */
#nav-drawer-panel {
    overflow-y: auto !important;
    scrollbar-width: thin;
}
