/* style.css */

/* Core Resets & Utilities */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    overscroll-behavior-y: contain; /* Prevent pull-to-refresh on mobile */
}

/* Hide scrollbar for clean app-like feel */
::-webkit-scrollbar {
    display: none;
}

/* Glassmorphism Header */
.glass-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .glass-header {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Property Cards */
.tinder-card {
    position: absolute;
    width: 90%;
    max-width: 400px;
    height: 65vh;
    max-height: 600px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    overflow: hidden;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: 50% 100%;
}

.dark .tinder-card {
    background: #1a1a1a;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Image Section inside Card */
.tinder-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Gradient overlay for text readability */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    pointer-events: none;
    color: white;
}

/* Swipe Indicators (LIKE/NOPE stamps) */
.stamp {
    position: absolute;
    top: 40px;
    padding: 6px 12px;
    border: 4px solid;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.stamp-like {
    right: 40px;
    color: #22c55e;
    border-color: #22c55e;
    transform: rotate(15deg);
}

.stamp-nope {
    left: 40px;
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(-15deg);
}

.stamp-super {
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Action Buttons */
.action-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    outline: none;
}

.dark .action-btn {
    background: #252525;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn.small {
    width: 50px;
    height: 50px;
}

/* Details View Modifiers */
.details-open {
    transform: translateY(0) !important;
}

/* Utilities for animations */
.animate-scale-up {
    transform: scale(1) !important;
}

.animate-slide-up {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Custom badge styling */
.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dot Navigation for gallery */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.3s;
}
.dot.active {
    background: white;
}
