:root { 
    --bg: #000; 
    --accent: #48d5f6; 
    --border: #222; 
    --card: #0a0a0a;
}

* { box-sizing: border-box; }
body { 
    background: var(--bg); 
    color: #fff; 
    margin: 0; 
    padding-top: 85px; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
}

/* NAVBAR */
.navbar { 
    position: fixed; top: 0; width: 100%; height: 70px; 
    background: rgba(0,0,0,0.95); display: flex; 
    justify-content: space-between; align-items: center; 
    padding: 0 25px; border-bottom: 1px solid var(--border); 
    backdrop-filter: blur(10px); z-index: 1000; 
}
.logo { color: var(--accent); font-weight: 900; font-size: 1.7rem; letter-spacing: -1.5px; }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* GRID */
.masonry-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); 
    gap: 20px; padding: 20px; max-width: 1400px; margin: 0 auto; 
}

/* CARDS */
.post-card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 18px; 
    overflow: hidden; 
    transition: 0.2s;
}
.post-card:hover { border-color: #444; transform: translateY(-3px); }

.media-container { 
    width: 100%; 
    aspect-ratio: 1/1; 
    background: #111; 
    overflow: hidden;
}
.media-container img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-content { padding: 18px; }
.post-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.post-id-tag { font-size: 0.7rem; color: #444; font-weight: bold; }

/* BUTTONS */
.action-btn { background: none; border: none; color: #fff; cursor: pointer; font-weight: 700; transition: 0.2s; }
.login-btn { border: 1px solid var(--border); padding: 6px 15px; border-radius: 8px; }
.join-btn { background: var(--accent); color: #000; padding: 7px 18px; border-radius: 8px; }
.send-btn { color: var(--accent); font-size: 0.9rem; }

/* COMMENTS */
.comment-section { font-size: 0.85rem; color: #888; margin-bottom: 15px; max-height: 100px; overflow-y: auto; }
.comment-line { margin-bottom: 5px; }
.comment-input-area { display: flex; gap: 10px; border-top: 1px solid var(--border); padding-top: 15px; }
.comment-input-area input { flex: 1; background: #151515; border: 1px solid #222; color: #fff; padding: 10px; border-radius: 10px; outline: none; }
.comment-input-area input:focus { border-color: var(--accent); }

/* MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 2000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: #000; padding: 35px; border-radius: 24px; border: 1px solid var(--accent); width: 330px; text-align: center; }
.modal-content h2 { margin-bottom: 25px; letter-spacing: 1px; }
.modal-content input { width: 100%; margin-bottom: 12px; padding: 14px; background: #111; border: 1px solid #222; color: #fff; border-radius: 10px; }
.modal-content button#auth-submit-btn { width: 100%; padding: 14px; background: var(--accent); color: #000; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; font-size: 1rem; }