/* 
   MatchMaker Global Styles 
   Loaded via header.php 
*/

/* 1. Hide Scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 2. Hide Scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 3. Smooth Scrolling for the Reel Container */
html {
    scroll-behavior: smooth;
}

/* 4. Aspect Ratio Utility (Fallback if Tailwind config fails) */
.aspect-reel {
    aspect-ratio: 9 / 16;
}

/* 5. Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 6. Form Auto-fill Fix (Prevents yellow background on Chrome) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.dark input:-webkit-autofill,
.dark input:-webkit-autofill:hover, 
.dark input:-webkit-autofill:focus, 
.dark input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #1f2937 inset !important;
    -webkit-text-fill-color: white !important;
}

/* 7. Geoapify Autocomplete Overrides */
.autocomplete-container {
    position: relative;
    z-index: 40; /* Ensure it floats above other fields */
}

.geoapify-autocomplete-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    outline: none;
    transition: all 0.2s;
}

.dark .geoapify-autocomplete-input {
    background-color: #374151;
    border-color: #4b5563;
    color: white;
}

.geoapify-autocomplete-input:focus {
    border-color: #ec4899; /* Brand Pink */
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.geoapify-autocomplete-items {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    margin-top: 5px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dark .geoapify-autocomplete-items {
    background: #1f2937;
    border-color: #374151;
    color: white;
}

.geoapify-autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.geoapify-autocomplete-item:hover {
    background-color: #f3f4f6;
}

.dark .geoapify-autocomplete-item:hover {
    background-color: #374151;
}