:root {
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body, html {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.circle-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.3); /* Purple */
}

.circle-2 {
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.3); /* Blue */
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glass Header */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 15px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.search-container {
    margin-top: 15px;
}
.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}
.search-input:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.1);
}

.highlight {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Feed */
.feed-container {
    margin-top: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 100px; /* Prevent FAB overlap */
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 50px;
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    font-size: 2rem;
    border: none;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 999;
}

.fab-btn:hover {
    transform: scale(1.1);
}

@media (min-width: 641px) {
    .fab-btn {
        right: calc((100vw - 600px) / 2 + 20px);
    }
}

@media (max-width: 640px) {
    .app-container {
        padding: 10px;
    }
    .glass-header {
        top: 10px;
    }
}
/* Tabs */
.tabs { display: flex; gap: 10px; margin-top: 20px; background: rgba(0, 0, 0, 0.3); padding: 5px; border-radius: 12px; }
.tab-btn { flex: 1; flex-shrink: 0; background: transparent; border: none; color: var(--text-secondary); padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.tab-btn.active { background: var(--glass-bg); color: var(--text-primary); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
/* Modal Overlay */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100%; height: 100dvh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: flex-end; }
.modal-content { background: var(--bg-dark); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 30px 20px 50px 20px; border-top: 1px solid var(--glass-border); animation: slideUp 0.3s ease-out; box-sizing: border-box; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-location { font-size: 0.9rem; color: var(--accent-blue); margin: 10px 0 20px 0; }
.modal-content input, .modal-content textarea { width: 100%; box-sizing: border-box; background: var(--glass-bg); border: 1px solid var(--glass-border); color: white; padding: 15px; border-radius: 10px; margin-bottom: 15px; outline: none; }
.modal-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.btn-primary, .btn-secondary { flex: 1; padding: 15px; border-radius: 10px; border: none; cursor: pointer; font-weight: bold; }
.btn-primary { background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue)); color: white; }
.btn-secondary { background: transparent; color: white; border: 1px solid var(--glass-border); }
.spot-tag { background: rgba(168, 85, 247, 0.2); color: var(--accent-purple); padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }

/* FAB Scroll Hide */
.fab-hidden { transform: translateY(150px) scale(0) !important; opacity: 0; pointer-events: none; }

/* Reactions UI */
.reactions-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    position: relative;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.reaction-bar {
    position: absolute;
    bottom: 35px;
    left: 0;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 5px 10px;
    display: flex;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 50;
}
.reaction-bar.show,
.reactions-container:hover .reaction-bar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reaction-emoji {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 5px;
}
.reaction-emoji:hover {
    transform: scale(1.3) translateY(-5px);
}

.reaction-counts {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #ccc;
    margin-left: auto;
}
.reaction-count-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Connect & Social Links */
.connect-box {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}
.social-btn:hover {
    transform: translateY(-2px);
}
.social-btn.insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-btn.snap { background: #FFFC00; color: black; }

.btn-unlock-conn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s;
}
.btn-unlock-conn:hover {
    background: var(--accent-blue);
    color: white;
}


/* --- Side Drawer --- */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;

.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}
.side-drawer {
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-left: 1px solid var(--border-color);
}
}
.side-drawer.open {
    right: 0;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.btn-close-drawer {
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}
.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}
.drawer-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-link:hover {
    background: var(--bg-hover);
}
.drawer-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.menu-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}
.menu-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Hide scrollbars completely but keep functionality */
::-webkit-scrollbar {
    display: none;
}
html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.load-more-spinner { margin-top: 10px; margin-bottom: 20px; font-size: 0.9rem; }
\n
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}
.side-drawer {
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-left: 1px solid var(--border-color);
}
.side-drawer.open {
    right: 0;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.btn-close-drawer {
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}
.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}
.drawer-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 1rem;
    font-weight: 500;
}
.drawer-link:hover {
    background: var(--bg-hover);
    color: var(--accent-blue);
}
.drawer-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
