/* --- GLOBAL --- */
:root {
    --accent-color: #bb86fc;
    --accent-rgb: 187, 134, 252;
    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Tag Colors */
    --tag-blog: #03dac6;
    --tag-writeup: #cf6679;
    --tag-photo: #ffb74d;
    --tag-project: #64b5f6;
}

* { box-sizing: border-box; }

body, html {
    margin: 0; padding: 0; width: 100%; min-height: 100%;
    overflow-x: hidden; font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #000; color: #e0e0e0;
}

/* --- BACKGROUND --- */
#vanta-bg {
    position: fixed; top: -5%; left: -5%; width: 110%; height: 110%;
    z-index: 0; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cursor-light {
    position: fixed; top: 0; left: 0; width: 1000px; height: 1000px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, rgba(0,0,0,0) 60%);
    transform: translate(-50%, -50%); pointer-events: none; z-index: 5; mix-blend-mode: screen; transition: opacity 0.3s;
}

/* --- NAV --- */
.top-nav, .top-nav-left { position: fixed; top: 30px; z-index: 100; display: flex; gap: 15px; transition: opacity 0.3s, transform 0.3s; }
.top-nav { right: 40px; }
.top-nav-left { left: 40px; }

body.detached .top-nav, body.detached .top-nav-left { transform: translateY(-20px); opacity: 0; pointer-events: none; }

.nav-btn {
    background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
    color: #fff; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 0.95em;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.nav-btn:hover { background: rgba(var(--accent-rgb), 0.2); border-color: var(--accent-color); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.25); }

/* --- STICKY HEADER --- */
#sticky-header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-150%);
    z-index: 90; display: flex; align-items: center; gap: 15px; transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); cursor: pointer;
}
body.header-visible #sticky-header { transform: translateX(-50%) translateY(0); }

.header-bubble {
    background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border);
    border-radius: 50px; padding: 8px 20px; color: #fff; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex; align-items: center; gap: 10px;
}
.header-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.2); }

/* --- CENTER STAGE --- */
.center-stage {
    position: relative; z-index: 10; width: 100%; min-height: 80vh; 
    padding-top: 150px; padding-bottom: 50px;
    display: flex; flex-direction: column; align-items: center; perspective: 1000px; 
}

/* --- HANGING PROFILE CARD --- */
.profile-card {
    display: flex; width: 700px; height: 350px; border-radius: 24px;
    background: var(--glass-bg); backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    position: relative; transition: opacity 0.4s ease, transform 0.4s ease;
    align-items: center; justify-content: center; overflow: visible; 
}
.profile-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 24px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}

.left-section { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 20; }
.avatar-container { width: 220px; height: 220px; border-radius: 50%; padding: 6px; background: rgba(30, 30, 30, 0.4); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #1a1a1a; }
.username-pill { background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); color: #ccc; padding: 8px 16px; border-radius: 20px; font-size: 0.9em; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.card-content { margin-left: 160px; padding-right: 80px; position: relative; z-index: 2; text-align: left; }
.name-title { font-size: 2.8em; font-weight: 800; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); letter-spacing: -0.5px; }
.role-tag { display: inline-block; background: rgba(var(--accent-rgb), 0.15); color: var(--accent-color); padding: 4px 12px; border-radius: 12px; font-size: 0.8em; font-weight: bold; margin-bottom: 15px; border: 1px solid rgba(var(--accent-rgb), 0.2); }
.bio-text { margin-top: 10px; color: #ddd; line-height: 1.6; font-size: 1em; opacity: 0.9; }

.action-bubbles { position: absolute; right: 0; top: 50%; transform: translate(50%, -50%); display: flex; flex-direction: column; gap: 30px; z-index: 20; align-items: center; }
.bubble-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; }
.bubble-btn { width: 60px; height: 60px; border-radius: 50%; background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; font-size: 1.4em; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 8px 20px rgba(0,0,0,0.3); z-index: 2; }
.bubble-btn:hover { transform: scale(1.15); background: rgba(50, 50, 50, 0.8); border-color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.4); z-index: 25; }
.bubble-btn.active { color: var(--accent-color); border-color: var(--accent-color); background: rgba(var(--accent-rgb), 0.15); }
.bubble-btn.like-active { color: #cf6679; border-color: #cf6679; background: rgba(207, 102, 121, 0.15); }
.stat-label { margin-top: 8px; background: rgba(20, 20, 20, 0.8); border: 1px solid rgba(255,255,255,0.1); color: #ccc; font-size: 0.65em; font-weight: bold; padding: 4px 8px; border-radius: 10px; white-space: nowrap; text-transform: uppercase; backdrop-filter: blur(4px); pointer-events: none; }

.bubble-btn::after { content: attr(data-tooltip); position: absolute; right: 75px; background: rgba(0,0,0,0.8); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 0.85em; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s; transform: translateX(10px); }
.bubble-btn:hover::after { opacity: 1; transform: translateX(0); }

/* --- SOCIAL LINKS BAR --- */
.social-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    z-index: 10;
}

.social-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
}
.social-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.social-pill img { 
    width: 20px; 
    height: 20px; 
    filter: invert(1); 
    transition: filter 0.3s; 
}
.social-pill:hover img { filter: invert(1); } 

/* --- HIDDEN PROFILE SCREEN --- */
#hidden-profile-screen { display: none !important; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 500; justify-content: center; align-items: center; flex-direction: column; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); }
body.profile-is-hidden #hidden-profile-screen { display: flex !important; }
.hidden-msg { font-size: 3em; font-weight: 800; color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }
.return-btn { padding: 15px 30px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; border-radius: 30px; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s; }
.return-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }
.content-spacer { height: 500px; text-align: center; padding-top: 50px; color: #555; }

/* --- OWNER TOOLS --- */
.owner-tools { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; z-index: 30; display: none; }
.you-badge { background: var(--accent-color); color: #000; padding: 5px 12px; border-radius: 20px; font-weight: 900; font-size: 0.9em; letter-spacing: 1px; box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.5); }
.edit-btn { background: rgba(40, 40, 40, 0.8); color: #fff; border: 1px solid #555; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 0.8em; backdrop-filter: blur(5px); }
.edit-btn:hover { background: #fff; color: #000; }

/* --- CREATE POST --- */
.create-post-container {
    width: 100%; max-width: 800px; margin: 50px auto 20px auto; text-align: center; display: none; z-index: 20;
}
.create-post-btn {
    width: 100%; padding: 20px; background: rgba(var(--accent-rgb), 0.05); border: 2px dashed rgba(var(--accent-rgb), 0.3); border-radius: 20px; color: var(--accent-color); font-weight: bold; font-size: 1.1em; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.create-post-btn:hover { background: rgba(var(--accent-rgb), 0.15); transform: scale(1.01); }

/* --- POSTS FEED --- */
#posts-feed {
    width: 100%; max-width: 900px; margin: 20px auto 80px auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; padding: 0 20px;
    z-index: 10; position: relative;
}

/* Post Card Container */
.post-card { 
    background: var(--glass-bg); 
    backdrop-filter: blur(15px); 
    border: 1px solid var(--glass-border); 
    border-radius: 24px; 
    overflow: hidden; /* Clips the image perfectly */
    transition: transform 0.3s, box-shadow 0.3s; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    position: relative;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); border-color: var(--accent-color); }

/* Image Wrapper */
.post-img-wrapper { 
    width: 100%; height: 180px; 
    background: #111; 
    position: relative; 
    overflow: hidden;
    z-index: 1;
}

.post-thumb { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s;
    display: block;
}
.post-card:hover .post-thumb { transform: scale(1.05); }

/* Post Info Section */
.post-info { padding: 20px; flex: 1; display: flex; flex-direction: column; z-index: 2; background: inherit; }
.post-date { font-size: 0.75em; color: #666; text-transform: uppercase; margin-bottom: 8px; }
.post-title { font-size: 1.3em; font-weight: 800; margin: 0 0 10px 0; color: #fff; }
.post-snippet { font-size: 0.9em; color: #aaa; line-height: 1.5; }

/* INTERNAL TAGS */
/* Placed Inside Top Left */
.hanging-tags { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    display: flex; 
    gap: 5px; 
    z-index: 10; 
}
.post-tag { padding: 4px 10px; border-radius: 20px; font-size: 0.7em; font-weight: bold; text-transform: uppercase; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.tag-blog { background-color: var(--tag-blog); }
.tag-writeup { background-color: var(--tag-writeup); }
.tag-photo { background-color: var(--tag-photo); }
.tag-project { background-color: var(--tag-project); }

/* INTERNAL LIKE BUBBLE */
/* Placed Inside Bottom Right of Image */
.hanging-like-wrapper {
    position: absolute;
    bottom: 15px; 
    right: 15px; 
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small-bubble { width: 40px !important; height: 40px !important; font-size: 1em !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6) !important; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.2s; backdrop-filter: blur(4px); }
.small-bubble:hover { transform: scale(1.1); background: rgba(0,0,0,0.8) !important; }

/* LIKE COUNTER VISIBLE */
.small-stat { 
    display: block !important; /* Visible */
    font-size: 0.6em !important; 
    padding: 2px 6px !important; 
    margin-top: 4px !important; 
    background: rgba(0,0,0,0.7); 
    border-radius: 8px; 
    white-space: nowrap; 
    backdrop-filter: blur(4px);
    color: #eee;
    font-weight: bold;
}

/* --- MODALS --- */
/* RESTORED SCROLLING LOGIC */
#editor-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }

/* Card is fixed size, but flex container */
.editor-card { 
    background: #1e1e1e; 
    padding: 30px; 
    border-radius: 16px; 
    width: 90%; 
    max-width: 600px; 
    border: 1px solid #333; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.8); 
    display: flex; 
    flex-direction: column; 
    max-height: 90vh; /* Limits height to screen */
}

.editor-card h2 { margin-top: 0; color: #fff; border-bottom: 1px solid #333; padding-bottom: 10px; }

/* SCROLL AREA RESTORED */
.editor-scroll-area {
    overflow-y: auto; /* Enables scrolling */
    padding-right: 10px;
    flex: 1; /* Takes up remaining space */
    margin-bottom: 20px;
}

.editor-field { margin-bottom: 15px; }
.editor-field label { display: block; color: #aaa; margin-bottom: 5px; font-size: 0.9em; }
.editor-field input, .editor-field textarea { width: 100%; padding: 10px; background: #2c2c2c; border: 1px solid #444; color: #fff; border-radius: 6px; outline: none; }
.editor-field input:focus, .editor-field textarea:focus { border-color: #bb86fc; }

/* Social Grid */
.social-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.toggle-container { display: flex; align-items: center; justify-content: space-between; background: #252525; padding: 10px; border-radius: 8px; margin-bottom: 20px; }
.toggle-label { color: #fff; font-weight: bold; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #bb86fc; }
input:checked + .slider:before { transform: translateX(24px); }
.editor-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: auto; }
.save-btn { background: #bb86fc; color: #000; border: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; }
.cancel-btn { background: transparent; color: #aaa; border: 1px solid #444; padding: 10px 20px; border-radius: 6px; cursor: pointer; }

@media (max-width: 768px) {
    .profile-card { flex-direction: column; width: 90%; height: auto; padding: 100px 20px 40px 20px; text-align: center; margin-top: 50px; }
    .left-section { left: 50%; top: 0; transform: translate(-50%, -50%); gap: 10px; }
    .card-content { margin-left: 0; padding-right: 0; margin-bottom: 20px;}
    .action-bubbles { position: relative; right: auto; top: auto; transform: none; flex-direction: row; gap: 15px; justify-content: center; }
    .owner-tools { top: -80px; }
    .hanging-like-wrapper { right: 10px; bottom: 10px; transform: none; }
    .social-inputs-grid { grid-template-columns: 1fr; }
}
/* ... [KEEP ALL PREVIOUS CSS] ... */
/* (I will re-output the file with changes at the bottom and the fix in the media query) */

/* --- GLOBAL --- */
:root {
    --accent-color: #bb86fc;
    --accent-rgb: 187, 134, 252;
    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Tag Colors */
    --tag-blog: #03dac6;
    --tag-writeup: #cf6679;
    --tag-photo: #ffb74d;
    --tag-project: #64b5f6;
}

* { box-sizing: border-box; }

body, html {
    margin: 0; padding: 0; width: 100%; min-height: 100%;
    overflow-x: hidden; font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #000; color: #e0e0e0;
}

/* --- BACKGROUND --- */
#vanta-bg {
    position: fixed; top: -5%; left: -5%; width: 110%; height: 110%;
    z-index: 0; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cursor-light {
    position: fixed; top: 0; left: 0; width: 1000px; height: 1000px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, rgba(0,0,0,0) 60%);
    transform: translate(-50%, -50%); pointer-events: none; z-index: 5; mix-blend-mode: screen; transition: opacity 0.3s;
}

/* --- NAV (DESKTOP) --- */
.top-nav, .top-nav-left { position: fixed; top: 30px; z-index: 100; display: flex; gap: 15px; transition: opacity 0.3s, transform 0.3s; }
.top-nav { right: 40px; }
.top-nav-left { left: 40px; }

body.detached .top-nav, body.detached .top-nav-left { transform: translateY(-20px); opacity: 0; pointer-events: none; }

.nav-btn {
    background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
    color: #fff; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 0.95em;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.nav-btn:hover { background: rgba(var(--accent-rgb), 0.2); border-color: var(--accent-color); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.25); }

/* --- STICKY HEADER --- */
#sticky-header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-150%);
    z-index: 90; display: flex; align-items: center; gap: 15px; transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); cursor: pointer;
}
body.header-visible #sticky-header { transform: translateX(-50%) translateY(0); }

.header-bubble {
    background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border);
    border-radius: 50px; padding: 8px 20px; color: #fff; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex; align-items: center; gap: 10px;
}
.header-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.2); }

/* --- CENTER STAGE --- */
.center-stage {
    position: relative; z-index: 10; width: 100%; min-height: 80vh; 
    padding-top: 150px; padding-bottom: 50px;
    display: flex; flex-direction: column; align-items: center; perspective: 1000px; 
}

/* --- HANGING PROFILE CARD --- */
.profile-card {
    display: flex; width: 700px; height: 350px; border-radius: 24px;
    background: var(--glass-bg); backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    /* Make visible so bubbles hang out */
    position: relative; transition: opacity 0.4s ease, transform 0.4s ease;
    align-items: center; justify-content: center; overflow: visible; 
}
.profile-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 24px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}

.left-section { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 20; }
.avatar-container { width: 220px; height: 220px; border-radius: 50%; padding: 6px; background: rgba(30, 30, 30, 0.4); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #1a1a1a; }
.username-pill { background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); color: #ccc; padding: 8px 16px; border-radius: 20px; font-size: 0.9em; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.card-content { margin-left: 160px; padding-right: 80px; position: relative; z-index: 2; text-align: left; }
.name-title { font-size: 2.8em; font-weight: 800; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); letter-spacing: -0.5px; }
.role-tag { display: inline-block; background: rgba(var(--accent-rgb), 0.15); color: var(--accent-color); padding: 4px 12px; border-radius: 12px; font-size: 0.8em; font-weight: bold; margin-bottom: 15px; border: 1px solid rgba(var(--accent-rgb), 0.2); }
.bio-text { margin-top: 10px; color: #ddd; line-height: 1.6; font-size: 1em; opacity: 0.9; }

.action-bubbles { position: absolute; right: 0; top: 50%; transform: translate(50%, -50%); display: flex; flex-direction: column; gap: 30px; z-index: 20; align-items: center; }
.bubble-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; }
.bubble-btn { width: 60px; height: 60px; border-radius: 50%; background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; font-size: 1.4em; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 8px 20px rgba(0,0,0,0.3); z-index: 2; }
.bubble-btn:hover { transform: scale(1.15); background: rgba(50, 50, 50, 0.8); border-color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.4); z-index: 25; }
.bubble-btn.active { color: var(--accent-color); border-color: var(--accent-color); background: rgba(var(--accent-rgb), 0.15); }
.bubble-btn.like-active { color: #cf6679; border-color: #cf6679; background: rgba(207, 102, 121, 0.15); }
.stat-label { margin-top: 8px; background: rgba(20, 20, 20, 0.8); border: 1px solid rgba(255,255,255,0.1); color: #ccc; font-size: 0.65em; font-weight: bold; padding: 4px 8px; border-radius: 10px; white-space: nowrap; text-transform: uppercase; backdrop-filter: blur(4px); pointer-events: none; }

.bubble-btn::after { content: attr(data-tooltip); position: absolute; right: 75px; background: rgba(0,0,0,0.8); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 0.85em; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s; transform: translateX(10px); }
.bubble-btn:hover::after { opacity: 1; transform: translateX(0); }

/* --- SOCIAL LINKS BAR --- */
.social-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    z-index: 10;
}

.social-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
}
.social-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.social-pill img { width: 20px; height: 20px; filter: invert(1); transition: filter 0.3s; }
.social-pill:hover img { filter: invert(1); } 

/* --- HIDDEN PROFILE SCREEN --- */
#hidden-profile-screen { display: none !important; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 500; justify-content: center; align-items: center; flex-direction: column; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); }
body.profile-is-hidden #hidden-profile-screen { display: flex !important; }
.hidden-msg { font-size: 3em; font-weight: 800; color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }
.return-btn { padding: 15px 30px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; border-radius: 30px; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s; }
.return-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }
.content-spacer { height: 500px; text-align: center; padding-top: 50px; color: #555; }

/* --- OWNER TOOLS --- */
.owner-tools { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; z-index: 30; display: none; }
.you-badge { background: var(--accent-color); color: #000; padding: 5px 12px; border-radius: 20px; font-weight: 900; font-size: 0.9em; letter-spacing: 1px; box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.5); }
.edit-btn { background: rgba(40, 40, 40, 0.8); color: #fff; border: 1px solid #555; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 0.8em; backdrop-filter: blur(5px); }
.edit-btn:hover { background: #fff; color: #000; }

/* --- CREATE POST --- */
.create-post-container {
    width: 100%; max-width: 800px; margin: 50px auto 20px auto; text-align: center; display: none; z-index: 20;
}
.create-post-btn {
    width: 100%; padding: 20px; background: rgba(var(--accent-rgb), 0.05); border: 2px dashed rgba(var(--accent-rgb), 0.3); border-radius: 20px; color: var(--accent-color); font-weight: bold; font-size: 1.1em; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.create-post-btn:hover { background: rgba(var(--accent-rgb), 0.15); transform: scale(1.01); }

/* --- POSTS FEED --- */
#posts-feed {
    width: 100%; max-width: 900px; margin: 20px auto 80px auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; padding: 0 20px;
    z-index: 10; position: relative;
}

/* Post Card Container */
.post-card { 
    background: var(--glass-bg); 
    backdrop-filter: blur(15px); 
    border: 1px solid var(--glass-border); 
    border-radius: 24px; 
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    position: relative;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); border-color: var(--accent-color); }

/* Image Wrapper */
.post-img-wrapper { 
    width: 100%; height: 180px; 
    background: #111; 
    position: relative; 
    overflow: hidden;
    z-index: 1;
}

.post-thumb { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s;
    display: block;
}
.post-card:hover .post-thumb { transform: scale(1.05); }

/* Post Info Section */
.post-info { padding: 20px; flex: 1; display: flex; flex-direction: column; z-index: 2; background: inherit; }
.post-date { font-size: 0.75em; color: #666; text-transform: uppercase; margin-bottom: 8px; }
.post-title { font-size: 1.3em; font-weight: 800; margin: 0 0 10px 0; color: #fff; }
.post-snippet { font-size: 0.9em; color: #aaa; line-height: 1.5; }

/* INTERNAL TAGS */
.hanging-tags { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    display: flex; 
    gap: 5px; 
    z-index: 10; 
}
.post-tag { padding: 4px 10px; border-radius: 20px; font-size: 0.7em; font-weight: bold; text-transform: uppercase; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.tag-blog { background-color: var(--tag-blog); }
.tag-writeup { background-color: var(--tag-writeup); }
.tag-photo { background-color: var(--tag-photo); }
.tag-project { background-color: var(--tag-project); }

/* INTERNAL LIKE BUBBLE */
.hanging-like-wrapper {
    position: absolute;
    bottom: 15px; 
    right: 15px; 
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small-bubble { width: 40px !important; height: 40px !important; font-size: 1em !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6) !important; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.2s; backdrop-filter: blur(4px); }
.small-bubble:hover { transform: scale(1.1); background: rgba(0,0,0,0.8) !important; }
.small-stat { 
    display: block !important; 
    font-size: 0.6em !important; 
    padding: 2px 6px !important; 
    margin-top: 4px !important; 
    background: rgba(0,0,0,0.7); 
    border-radius: 8px; 
    white-space: nowrap; 
    backdrop-filter: blur(4px);
    color: #eee;
    font-weight: bold;
}

/* ADMIN DELETE BUTTON */
.admin-delete-btn {
    position: absolute;
    top: 15px;
    right: 15px; 
    background: rgba(207, 102, 121, 0.2);
    border: 1px solid rgba(207, 102, 121, 0.4);
    color: #cf6679;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50; 
    font-size: 0.9em;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.admin-delete-btn:hover { background: rgba(207, 102, 121, 0.8); color: #fff; transform: scale(1.1); }

/* --- MODALS --- */
#editor-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.editor-card { background: #1e1e1e; padding: 30px; border-radius: 16px; width: 90%; max-width: 600px; border: 1px solid #333; box-shadow: 0 20px 60px rgba(0,0,0,0.8); display: flex; flex-direction: column; max-height: 90vh; }
.editor-card h2 { margin-top: 0; color: #fff; border-bottom: 1px solid #333; padding-bottom: 10px; }
.editor-scroll-area { overflow-y: auto; padding-right: 10px; flex: 1; margin-bottom: 20px; }
.editor-field { margin-bottom: 15px; }
.editor-field label { display: block; color: #aaa; margin-bottom: 5px; font-size: 0.9em; }
.editor-field input, .editor-field textarea { width: 100%; padding: 10px; background: #2c2c2c; border: 1px solid #444; color: #fff; border-radius: 6px; outline: none; }
.editor-field input:focus, .editor-field textarea:focus { border-color: #bb86fc; }
.social-inputs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.toggle-container { display: flex; align-items: center; justify-content: space-between; background: #252525; padding: 10px; border-radius: 8px; margin-bottom: 20px; }
.toggle-label { color: #fff; font-weight: bold; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #bb86fc; }
input:checked + .slider:before { transform: translateX(24px); }
.editor-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: auto; }
.save-btn { background: #bb86fc; color: #000; border: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; }
.cancel-btn { background: transparent; color: #aaa; border: 1px solid #444; padding: 10px 20px; border-radius: 6px; cursor: pointer; }

/* --- MOBILE MENU STYLES --- */
/* Hamburger Button (Hidden on Desktop) */
#mobile-menu-btn {
    display: none; /* Desktop default */
    position: fixed;
    top: 25px; right: 25px;
    z-index: 2001; /* Above almost everything */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 45px; height: 45px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Sidebar Menu */
#mobile-sidebar {
    position: fixed;
    top: 0; right: -280px; /* Start hidden */
    width: 280px;
    height: 100%;
    background: #151515;
    border-left: 1px solid #333;
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 80px 20px 20px 20px; /* Top padding clears hamburger */
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

#mobile-sidebar.open { right: 0; }

/* Overlay */
#mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    backdrop-filter: blur(3px);
}
#mobile-menu-overlay.open { display: block; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    /* Hide default navs on mobile */
    .top-nav, .top-nav-left { display: none !important; }
    
    /* Show hamburger */
    #mobile-menu-btn { display: flex; }

    /* Fix Profile Card Overlap */
    .profile-card { 
        flex-direction: column; 
        width: 90%; 
        height: auto; 
        /* INCREASED TOP PADDING to clear the hanging avatar (110px) + name */
        padding: 160px 20px 40px 20px; 
        text-align: center; 
        margin-top: 50px; 
    }
    
    .left-section { 
        left: 50%; top: 0; 
        transform: translate(-50%, -50%); 
        gap: 10px; 
    }
    
    .card-content { margin-left: 0; padding-right: 0; margin-bottom: 20px;}
    
    .action-bubbles { 
        position: relative; right: auto; top: auto; 
        transform: none; 
        flex-direction: row; 
        gap: 15px; 
        justify-content: center; 
    }
    
    .owner-tools { top: -80px; }
    .hanging-like-wrapper { right: 10px; bottom: 10px; transform: none; }
    .social-inputs-grid { grid-template-columns: 1fr; }
}