:root {
    --bg-color-light: #f5f7fa;
    --text-color-light: #2d3748;
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(255, 255, 255, 0.5);
    
    --bg-color-dark: #1a202c;
    --text-color-dark: #e2e8f0;
    --glass-bg-dark: rgba(26, 32, 44, 0.75);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    
    --primary-color: #ef4444; 
    --severity-yellow: #fbbf24;
    --severity-orange: #f97316;
    --severity-red: #ef4444;
    --success-green: #10b981;
    --info-blue: #3b82f6;

    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --glass-bg: var(--glass-bg-dark);
    --glass-border: var(--glass-border-dark);
}

body.light-mode {
    --bg-color: var(--bg-color-light);
    --text-color: var(--text-color-light);
    --glass-bg: var(--glass-bg-light);
    --glass-border: var(--glass-border-light);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; transition: background-color 0.3s, color 0.3s; }
body { background-color: var(--bg-color); color: var(--text-color); overflow: hidden; }

/* Page Layouts */
.page-map { overflow: hidden; }
.page-content-only { overflow-y: auto; padding-bottom: 90px; height: 100vh; }
.page-content-only::-webkit-scrollbar { width: 0; }

.page-header { position: sticky; top: 0; z-index: 10; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-radius: 0 0 20px 20px; border-top: none; }
.page-container { padding: 20px; }

/* Utilities */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15); }
.glass-btn { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); color: var(--text-color); cursor: pointer; box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1); transition: all 0.2s ease; }
.glass-btn:active { transform: scale(0.95); }
.glass-btn.primary { background: rgba(239, 68, 68, 0.85); color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.icon-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; border: none; outline: none; background: transparent; color: var(--text-color); cursor: pointer; }

/* Horizontal Scroll Utilities */
.horizontal-scroll { display: flex; overflow-x: auto; gap: 15px; padding: 10px 0; -ms-overflow-style: none; scrollbar-width: none; }
.horizontal-scroll::-webkit-scrollbar { display: none; }

/* Stories (Keşfet & Topluluk) */
.stories-container { padding: 5px 20px; border-bottom: 1px solid var(--glass-border); margin-bottom: 15px; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; transition: transform 0.2s; flex-shrink: 0; width: 70px; }
.story-item:active { transform: scale(0.9); }
.story-avatar-wrapper { width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(45deg, #f97316, #ef4444, #fbbf24); padding: 3px; display: flex; justify-content: center; align-items: center; }
.story-avatar-wrapper.viewed { background: var(--glass-border); }
.story-avatar { width: 100%; height: 100%; border-radius: 50%; background: var(--bg-color); border: 2px solid var(--bg-color); display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--text-color); overflow: hidden; }
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-name { font-size: 0.75rem; text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.9; }
.story-add { position: relative; }
.story-add .story-avatar-wrapper { background: transparent; border: 2px dashed rgba(255,255,255,0.4); padding: 2px; }
.story-add-icon { position: absolute; bottom: 20px; right: 0; background: var(--info-blue); width: 22px; height: 22px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.7rem; border: 2px solid var(--bg-color); color: white; }

/* Medals (Profile) */
.profile-medals-section { margin: 20px 0; }
.section-title { font-size: 0.95rem; font-weight: 700; opacity: 0.9; margin-bottom: 5px; }
.medal-item { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 20px; padding: 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 110px; flex-shrink: 0; text-align: center; }
.medal-icon-wrapper { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; position: relative; }
.medal-icon-wrapper.gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: white; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); }
.medal-icon-wrapper.silver { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: white; box-shadow: 0 4px 15px rgba(148, 163, 184, 0.4); }
.medal-icon-wrapper.bronze { background: linear-gradient(135deg, #d97706, #92400e); color: white; box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4); }
.medal-icon-wrapper.special { background: linear-gradient(135deg, #ef4444, #9f1239); color: white; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }
.medal-title { font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.medal-date { font-size: 0.65rem; opacity: 0.6; }

/* Map View Elements */
#map { height: 100vh; width: 100vw; position: absolute; top: 0; left: 0; z-index: 1; }
.leaflet-div-icon { background: transparent !important; border: none !important; }
body.dark-mode .leaflet-layer, body.dark-mode .leaflet-control-zoom-in, body.dark-mode .leaflet-control-zoom-out, body.dark-mode .leaflet-control-attribution { filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%); }

.map-filter { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; border-radius: 30px; padding: 5px; gap: 5px; }
.filter-btn { background: transparent; border: none; color: var(--text-color); padding: 8px 18px; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.filter-btn.active { background: rgba(255, 255, 255, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
body.light-mode .filter-btn.active { background: rgba(0, 0, 0, 0.1); }

.top-nav-map { position: absolute; top: 20px; left: 20px; right: 20px; z-index: 1000; display: flex; justify-content: space-between; pointer-events: none; }
.top-nav-map > button { pointer-events: auto; }

.location-btn { position: absolute; bottom: 100px; right: 20px; z-index: 1000; }

/* Bottom Navigation */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100vw; height: 70px; display: flex; justify-content: space-around; align-items: center; z-index: 2000; border-radius: 20px 20px 0 0; border-bottom: none; }
.nav-item-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-color); opacity: 0.5; cursor: pointer; transition: opacity 0.2s; width: 60px; text-decoration: none; }
.nav-item-bottom.active { opacity: 1; color: var(--primary-color); }
.nav-item-bottom i { font-size: 1.3rem; }
.nav-item-bottom span { font-size: 0.65rem; font-weight: 600; }
.center-action { opacity: 1; transform: translateY(-20px); }
.center-btn-inner { width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4); }

/* Modals & Overlays */
.overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 2999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.overlay.active { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: -100%; width: 320px; max-width: 85%; height: 100vh; z-index: 3000; border-radius: 30px 0 0 30px; padding: 25px; display: flex; flex-direction: column; transition: right 0.4s; }
.drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.drawer-nav { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; }
.nav-item { text-decoration: none; color: var(--text-color); padding: 12px 15px; border-radius: 15px; font-weight: 600; display: flex; align-items: center; gap: 15px; }
.action-btn { padding: 12px; border-radius: 15px; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--glass-border); background: transparent; color: var(--text-color); cursor: pointer;}
.nav-badge { margin-left: auto; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; }
.nav-badge.alert { background: var(--primary-color); color: white; }

/* Report Modal (Bottom Sheet) */
.modal { position: fixed; bottom: 0; left: 0; width: 100vw; border-radius: 30px 30px 0 0; z-index: 3000; padding: 25px; transform: translateY(110%); transition: transform 0.4s; visibility: hidden; }
.modal.active { transform: translateY(0); visibility: visible; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.type-options, .severity-options { display: flex; gap: 10px; margin-bottom: 20px; }
.type-option, .severity-option { flex: 1; padding: 12px; border-radius: 15px; border: 1px solid var(--glass-border); text-align: center; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.type-option.selected, .severity-option.selected { background: rgba(255,255,255,0.2); }
.submit-btn { width: 100%; padding: 15px; border-radius: 20px; font-size: 1.1rem; font-weight: 700; margin-top: 10px;}
.color-dot { width: 12px; height: 12px; border-radius: 50%; display:inline-block; margin-right:5px;}
.color-dot.yellow { background-color: var(--severity-yellow); }
.color-dot.orange { background-color: var(--severity-orange); }
.color-dot.red { background-color: var(--severity-red); box-shadow: 0 0 10px var(--severity-red); }
.glass-input { width: 100%; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 15px; padding: 15px; color: var(--text-color); font-size: 1rem; resize: none; height: 100px; outline: none; margin-bottom: 15px;}
.media-actions { display: flex; gap: 15px; margin-bottom: 20px; }
.media-btn { flex: 1; padding: 15px; border-radius: 15px; font-size: 1rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* Complex Popup Styles (Used on Map) */
.leaflet-popup-content-wrapper { background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border); color: var(--text-color); border-radius: 20px; overflow: hidden; padding: 0; }
.leaflet-popup-tip { background: var(--glass-bg); }
.leaflet-popup-content { margin: 0; width: 320px !important; }
.leaflet-popup-close-button { display: none !important; }

.popup-complex-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid var(--glass-border); }
.popup-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 5px;}
.popup-complex-body { padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.popup-location-row { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.popup-location-row strong { display: flex; align-items: center; gap: 6px; font-size: 0.95rem;}
.popup-location-row span { opacity: 0.7; font-size: 0.8rem; padding-left: 20px; }

.popup-media { width: 100%; border-radius: 12px; overflow: hidden; position: relative; }
.popup-media img { width: 100%; height: 140px; object-fit: cover; display: block; }
.popup-audio { margin-top: 8px; background: rgba(255,255,255,0.1); border-radius: 20px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; cursor: pointer; transition: background 0.2s;}
.popup-desc-text { font-style: italic; font-size: 0.95rem; line-height: 1.4; border-left: 3px solid var(--glass-border); padding-left: 10px; }

.popup-stats-section { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.popup-stat-row { display: flex; justify-content: space-between; font-size: 0.85rem; align-items: center; }
.popup-stat-row div { display: flex; align-items: center; gap: 6px; }

.popup-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 15px 15px 15px; }
.popup-action-btn { background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); color: var(--text-color); padding: 8px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.popup-action-btn.success { color: var(--success-green); border-color: rgba(16,185,129,0.3); }
.popup-action-btn.danger { color: var(--primary-color); border-color: rgba(239,68,68,0.3); }

/* Full Screen Post Detail Modal (Used in Profile/Explore) */
.full-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 4000; background: var(--bg-color); transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.full-modal.active { transform: translateX(0); }
.full-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-radius: 0; border-top: none; border-left: none; border-right: none; flex-shrink: 0; }
.full-modal-content { flex: 1; overflow-y: auto; padding: 0; display: flex; flex-direction: column; }

/* Profile Page */
.profile-header-large { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.avatar.large { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #ef4444); display: flex; justify-content: center; align-items: center; color: white; font-size: 2rem; flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-title { font-size: 0.9rem; opacity: 0.8; margin-bottom: 10px; }
.profile-stats-grid { display: flex; justify-content: space-between; }
.p-stat { display: flex; flex-direction: column; align-items: center; }
.p-stat strong { font-size: 1.1rem; }
.p-stat span { font-size: 0.7rem; opacity: 0.7; }
.profile-tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--glass-border); padding-top: 10px; margin-bottom: 10px; }
.p-tab { flex: 1; text-align: center; padding: 10px; opacity: 0.6; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.p-tab.active { opacity: 1; border-bottom: 2px solid var(--text-color); }

/* Instagram Grid */
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-item { aspect-ratio: 1; background: rgba(255,255,255,0.05); position: relative; cursor: pointer; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; }
.grid-icon-placeholder { font-size: 2rem; opacity: 0.5; }
.stamp { position: absolute; bottom: 5px; right: 5px; padding: 2px 6px; border-radius: 6px; font-size: 0.6rem; font-weight: 700; color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.stamp.resolved { background: var(--success-green); }
.stamp.unresolved { background: var(--primary-color); }

/* Explore Feed */
.feed-post { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; margin-bottom: 20px; overflow: hidden; }
.feed-header { padding: 15px; display: flex; align-items: center; gap: 10px; }
.feed-avatar { width: 35px; height: 35px; border-radius: 50%; background: #475569; display: flex; justify-content: center; align-items: center; font-size: 0.9rem; }
.feed-header-info { flex: 1; }
.feed-header-info h4 { font-size: 0.95rem; }
.feed-header-info span { font-size: 0.75rem; opacity: 0.7; }
.feed-media { width: 100%; height: 250px; background: rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center; font-size: 3rem; position:relative; }
.feed-media img { width: 100%; height: 100%; object-fit: cover; }
.feed-actions { padding: 10px 15px; display: flex; gap: 15px; font-size: 1.2rem; }
.feed-actions i { cursor: pointer; }
.feed-content { padding: 0 15px 15px 15px; }
.feed-likes { font-weight: 700; font-size: 0.85rem; margin-bottom: 5px; }
.feed-caption { font-size: 0.9rem; line-height: 1.4; }
.feed-comments-link { font-size: 0.8rem; opacity: 0.6; margin-top: 5px; display: inline-block; cursor: pointer; }

/* Comment Section */
.comment-section { padding: 15px; border-top: 1px solid var(--glass-border); }
.comment { display: flex; gap: 10px; margin-bottom: 15px; }
.c-avatar { width: 30px; height: 30px; border-radius: 50%; background: #475569; flex-shrink: 0; display: flex; justify-content: center; align-items: center; font-size: 0.7rem; }
.c-content { flex: 1; font-size: 0.9rem; }
.c-content strong { font-size: 0.85rem; margin-right: 5px; }
.c-meta { display: flex; gap: 15px; font-size: 0.75rem; opacity: 0.6; margin-top: 4px; }
.comment-input-area { display: flex; gap: 10px; padding: 15px; border-top: 1px solid var(--glass-border); position: sticky; bottom: 0; background: var(--bg-color); }
.comment-input { flex: 1; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 10px 15px; color: var(--text-color); outline: none; }
.comment-send { background: transparent; border: none; color: var(--primary-color); font-weight: 600; padding: 0 10px; cursor: pointer; }

/* Login Page Styles */
.login-page { display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(135deg, #1a202c, #2d3748); position: relative; overflow: hidden; padding-bottom: 0; }
.login-page::before { content: ''; position: absolute; width: 300px; height: 300px; background: var(--primary-color); border-radius: 50%; filter: blur(100px); opacity: 0.3; top: -50px; left: -50px; }
.login-page::after { content: ''; position: absolute; width: 300px; height: 300px; background: var(--info-blue); border-radius: 50%; filter: blur(100px); opacity: 0.2; bottom: -50px; right: -50px; }

.login-container { width: 90%; max-width: 400px; padding: 40px 30px; border-radius: 30px; display: flex; flex-direction: column; gap: 20px; z-index: 10; position: relative; }
.login-header { text-align: center; margin-bottom: 10px; }
.logo-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #ef4444, #f97316); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; color: white; margin: 0 auto 15px auto; box-shadow: 0 10px 25px rgba(239,68,68,0.4); }
.login-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; }
.login-header p { font-size: 0.9rem; opacity: 0.7; }

.input-group { position: relative; margin-bottom: 15px; }
.input-group i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-color); opacity: 0.5; }
.input-group input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); padding: 15px 15px 15px 50px; border-radius: 15px; color: var(--text-color); font-size: 1rem; outline: none; transition: border 0.3s; }
.input-group input:focus { border-color: var(--primary-color); }

.login-btn { width: 100%; padding: 15px; border-radius: 15px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.login-btn.primary { background: var(--primary-color); color: white; border: none; box-shadow: 0 4px 15px rgba(239,68,68,0.3); }

.login-divider { display: flex; align-items: center; text-align: center; margin: 10px 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--glass-border); }
.login-divider span { padding: 0 10px; font-size: 0.85rem; opacity: 0.6; }

.google-btn { width: 100%; padding: 15px; border-radius: 15px; font-size: 1rem; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 10px; cursor: pointer; background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); color: var(--text-color); }
.google-btn img { width: 24px; height: 24px; }

.auth-error { color: var(--primary-color); font-size: 0.85rem; text-align: center; margin-top: 10px; font-weight: 600; }

/* Register Form Specifics */
.register-scroll-area { max-height: 50vh; overflow-y: auto; padding-right: 5px; margin-top: 10px; }
.register-scroll-area::-webkit-scrollbar { width: 4px; }
.register-scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: #0f172a;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.success { border-left-color: var(--success-green); color: var(--success-green); }
.toast.error { border-left-color: var(--primary-color); color: var(--primary-color); }
.toast.info { border-left-color: var(--info-blue); color: var(--info-blue); }

/* Story Viewer Modal */
.story-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000;
    z-index: 4000;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s;
}
.story-modal.active { opacity: 1; visibility: visible; }
.story-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px;
    position: absolute; top: 0; left: 0; width: 100%;
    z-index: 4010;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.story-author-info {
    display: flex; align-items: center; gap: 12px; color: white; font-weight: 600;
}
.story-author-info img {
    width: 35px; height: 35px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary-color);
}
.story-modal-content {
    flex: 1; display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
}
.story-modal-content img {
    max-width: 100%; max-height: 100%; object-fit: contain;
}
.story-desc {
    position: absolute; bottom: 30px; left: 20px; right: 20px;
    background: rgba(0,0,0,0.6); color: white;
    padding: 12px 15px; border-radius: 12px;
    font-size: 0.95rem; text-align: center; backdrop-filter: blur(5px);
}

/* Simple fade animation for switching forms */
.login-container { transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.login-container.fade-out { opacity: 0; transform: translate(-50%, -60%); visibility: hidden; }
.login-container.fade-in { opacity: 1; transform: translate(-50%, -50%); visibility: visible; }

/* Post Details Enhancements */

/* Hero Image Area */
.detail-hero {
    width: 100%; height: 280px; position: relative; overflow: hidden; flex-shrink: 0;
}
.detail-hero img {
    width: 100%; height: 100%; object-fit: cover;
}
.detail-hero-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}
.detail-hero-placeholder {
    width: 100%; height: 180px; display: flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(249,115,22,0.1));
    font-size: 4rem; opacity: 0.4; flex-shrink: 0;
}

/* Info Card */
.detail-info-card {
    padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}
.detail-user-row {
    display: flex; align-items: center; gap: 12px;
}
.detail-avatar {
    width: 42px; height: 42px; border-radius: 50%; background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-user-info { flex: 1; display: flex; flex-direction: column; }
.detail-user-info strong { font-size: 0.95rem; }
.detail-user-info span { font-size: 0.75rem; opacity: 0.6; }
.detail-type-badge {
    padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    color: white; display: flex; align-items: center; gap: 5px; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.detail-description {
    font-size: 0.95rem; line-height: 1.6; opacity: 0.9;
    border-left: 3px solid var(--primary-color); padding-left: 12px;
}
.detail-meta-row {
    display: flex; gap: 15px; flex-wrap: wrap;
}
.detail-meta-item {
    display: flex; align-items: center; gap: 6px; font-size: 0.8rem; opacity: 0.8;
    background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 10px;
    border: 1px solid var(--glass-border);
}
.detail-status-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
    box-shadow: 0 0 6px currentColor;
}
.detail-delete-btn {
    background: rgba(239,68,68,0.15); color: var(--primary-color); border: 1px solid rgba(239,68,68,0.3);
    padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
    display: flex; align-items: center; gap: 6px; align-self: flex-start;
    transition: background 0.2s;
}
.detail-delete-btn:active { background: rgba(239,68,68,0.3); }

/* Section Title for Map */
.detail-section-title {
    padding: 12px 20px 8px; font-weight: 700; font-size: 0.85rem; opacity: 0.7;
    display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Map Banner */
.detail-map-banner {
    width: calc(100% - 40px); height: 180px; min-height: 180px; margin: 0 20px 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--glass-border); border-radius: 16px;
    position: relative; z-index: 1; flex-shrink: 0; overflow: hidden;
}

/* Actions Row */
.post-actions {
    display: flex; gap: 20px; padding: 12px 20px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.action-btn {
    background: transparent; border: none; color: var(--text-color);
    font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: color 0.3s, transform 0.2s;
}
.action-btn:active { transform: scale(0.9); }
.action-btn.liked { color: var(--primary-color); }

/* Comments */
.comments-section {
    padding: 15px 20px;
    flex: 1; overflow-y: auto;
    display: flex; flex-direction: column; gap: 12px;
}
.comment-item {
    display: flex; gap: 10px; align-items: flex-start;
}
.comment-avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--card-bg);
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
    flex-shrink: 0; border: 1px solid var(--glass-border);
}
.comment-bubble {
    background: var(--card-bg); padding: 10px 14px; border-radius: 14px;
    border-top-left-radius: 4px; font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); border: 1px solid var(--glass-border);
}
.comment-author { font-weight: 600; font-size: 0.8rem; margin-bottom: 3px; color: var(--primary-color); }
.comment-input-container {
    display: flex; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--glass-border);
    background: var(--card-bg); position: sticky; bottom: 0; flex-shrink: 0;
}
.comment-input-container input {
    flex: 1; border-radius: 20px; padding: 10px 15px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-color); outline: none;
}
.comment-input-container input:focus { border-color: var(--primary-color); }
.comment-input-container button {
    width: 40px; height: 40px; border-radius: 50%; padding: 0;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

