/* =====================================================
   styles.css – Property Finder Pune – Global Styles
   =====================================================
   Shared across all pages. Tailwind handles utilities;
   this file handles: design tokens, glassmorphism,
   animations, patterns, and component-level styles.
====================================================== */

/* ──────────────────────────────────────────
   FONTS
────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ──────────────────────────────────────────
   CSS DESIGN TOKENS
────────────────────────────────────────── */
:root {
    --primary: #0df2a6;
    --primary-dim: rgba(13, 242, 166, 0.15);
    --bg-dark: #10221c;
    --bg-surface: #162a24;
    --bg-card: rgba(22, 42, 36, 0.55);
    --border-dark: rgba(34, 73, 60, 0.55);
    --border-light: rgba(13, 242, 166, 0.12);
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --shadow-primary: 0 0 30px rgba(13, 242, 166, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light {
    --bg-dark: #f0faf5;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-dark: rgba(13, 242, 166, 0.2);
    --text-muted: #64748b;
    --text-dim: #475569;
}

/* ──────────────────────────────────────────
   BASE
────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-dark);
    color: #e2e8f0;
    scroll-behavior: smooth;
}

.light body {
    color: #1e293b;
}

/* Page Transitions */
.page-transition {
    animation: fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: var(--transition-smooth);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ──────────────────────────────────────────
   BACKGROUND PATTERN
────────────────────────────────────────── */
.bg-pattern {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(13, 242, 166, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(13, 242, 166, 0.04) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(13,242,166,0.08)'/%3E%3C/svg%3E");
}

/* ──────────────────────────────────────────
   GLASSMORPHISM VARIANTS
────────────────────────────────────────── */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--border-dark);
}

.glass-card {
    background: rgba(22, 42, 36, 0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(13, 242, 166, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.glass-card-subtle {
    background: rgba(22, 42, 36, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 242, 166, 0.08);
}

.glass-pill {
    background: rgba(13, 242, 166, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 242, 166, 0.15);
    border-radius: 999px;
}

.glass-panel {
    background: rgba(16, 34, 28, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(13, 242, 166, 0.18);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.light .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 242, 166, 0.25);
    box-shadow: 0 4px 24px rgba(13, 242, 166, 0.08);
}

/* ──────────────────────────────────────────
   PROPERTY CARD GRADIENT
────────────────────────────────────────── */
.property-gradient {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.15) 40%,
            rgba(0, 0, 0, 0.65) 70%,
            rgba(16, 34, 28, 0.98) 100%);
}

/* ──────────────────────────────────────────
   SWIPE CARD STACK
────────────────────────────────────────── */
.swipe-card {
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform, opacity, scale;
    transform-origin: center bottom;
    touch-action: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.swipe-card:active {
    cursor: grabbing;
}

/* ──────────────────────────────────────────
   ANIMATIONS
────────────────────────────────────────── */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes match-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(13, 242, 166, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 6px rgba(13, 242, 166, 0.25);
    }
}

@keyframes shimmer {
    from {
        background-position: -200% center;
    }

    to {
        background-position: 200% center;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes heart-burst {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fade-in 0.35s ease forwards;
}

.animate-fade-in-scale {
    animation: fade-in-scale 0.35s ease forwards;
}

.animate-slide-up {
    animation: slide-up 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-match-pop {
    animation: match-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-heart-burst {
    animation: heart-burst 0.35s ease forwards;
}

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, rgba(34, 73, 60, 0.3) 25%, rgba(13, 242, 166, 0.08) 50%, rgba(34, 73, 60, 0.3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 0.75rem;
}

/* ──────────────────────────────────────────
   MATCH OVERLAY
────────────────────────────────────────── */
#matchOverlay {
    transition: opacity 0.4s ease;
}

#matchOverlay .match-card {
    animation: match-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ──────────────────────────────────────────
   SWIPE STAMPS
────────────────────────────────────────── */
.stamp-like,
.stamp-skip,
.stamp-super {
    transition: opacity 0.1s ease;
    pointer-events: none;
}

/* ──────────────────────────────────────────
   FILTER DRAWER
────────────────────────────────────────── */
.filter-drawer-enter {
    animation: slide-up 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ──────────────────────────────────────────
   BOTTOM NAV
────────────────────────────────────────── */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #0df2a6;
}

.bottom-nav-item .material-symbols-outlined {
    font-size: 22px;
}

/* ──────────────────────────────────────────
   ADMIN SIDEBAR – Shared
────────────────────────────────────────── */
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-item:hover {
    background: rgba(13, 242, 166, 0.06);
    color: #e2e8f0;
}

.admin-nav-item.active {
    background: rgba(13, 242, 166, 0.12);
    color: #0df2a6;
    border: 1px solid rgba(13, 242, 166, 0.2);
}

.admin-nav-item .material-symbols-outlined {
    font-size: 20px;
}

/* ──────────────────────────────────────────
   FORM INPUTS – Global
────────────────────────────────────────── */
.form-input {
    width: 100%;
    background: rgba(22, 42, 36, 0.5);
    border: 1px solid rgba(34, 73, 60, 0.6);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #475569;
}

.form-input:focus {
    border-color: rgba(13, 242, 166, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 242, 166, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

/* ──────────────────────────────────────────
   PRIMARY BUTTON
────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0df2a6;
    color: #10221c;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(13, 242, 166, 0.25);
}

.btn-primary:hover {
    opacity: 0.92;
    box-shadow: 0 4px 30px rgba(13, 242, 166, 0.4);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Skip button */
.btn-skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 2px solid rgba(239, 68, 68, 0.3);
    font-weight: 700;
    border-radius: 99px;
    padding: 0 0;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-skip:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.08);
}

/* Like button */
.btn-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    font-weight: 700;
    border-radius: 99px;
    width: 64px;
    height: 64px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(13, 242, 166, 0.35);
}

.btn-like:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(13, 242, 166, 0.5);
}

/* Super like */
.btn-super {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 99px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-super:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(1.08);
}

/* Undo */
.btn-undo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-undo:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

/* ──────────────────────────────────────────
   DAILY PICKS STRIP
────────────────────────────────────────── */
#dailyPicks {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

#dailyPicks::-webkit-scrollbar {
    display: none;
}

/* ──────────────────────────────────────────
   PROGRESS BAR
────────────────────────────────────────── */
.progress-track {
    height: 3px;
    background: rgba(13, 242, 166, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), rgba(13, 242, 166, 0.5));
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* ──────────────────────────────────────────
   AMOLED THEME OVERRIDES
────────────────────────────────────────── */
html.amoled body { background-color: #000000 !important; }
html.amoled .bg-background-dark { background-color: #000000 !important; }
html.amoled .glass-card, html.amoled .glass-panel { background: rgba(12, 12, 12, 0.6) !important; border-color: rgba(13, 242, 166, 0.05) !important; }
html.amoled header, html.amoled nav.glass { background: rgba(0, 0, 0, 0.7) !important; }
html.amoled .bottom-nav-item.active { background: rgba(13, 242, 166, 0.05) !important; }/*
 * Append these AMOLED theme styles to EOF of styles.css
 */
html.amoled body {
    background-color: #000000 !important;
}

html.amoled .bg-background-dark {
    background-color: #000000 !important;
}

html.amoled .glass-card, 
html.amoled .glass-panel {
    background: rgba(12, 12, 12, 0.6) !important;
    border-color: rgba(13, 242, 166, 0.05) !important;
}

html.amoled header, 
html.amoled nav.glass {
    background: rgba(0, 0, 0, 0.7) !important;
}

html.amoled .bottom-nav-item.active {
    background: rgba(13, 242, 166, 0.05) !important;
}

