/* --- System Variables --- */
:root {
    --bg-main: #020617;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --neon-purple: #a855f7;
    --neon-blue: #3b82f6;
    --panel-bg: rgba(15, 23, 42, 0.8);
    --panel-border: rgba(168, 85, 247, 0.2);
    --panel-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Base Setup & Animated Background --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    
    /* Scrolling Grid Background */
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-attachment: fixed;
    animation: gridScroll 30s linear infinite;
}

@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 0 600px; }
}

/* --- Decorative Glows --- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}
.glow-purple { top: -10%; left: -10%; width: 45vw; height: 45vh; background: rgba(88, 28, 135, 0.3); }
.glow-blue { bottom: 5%; right: 5%; width: 35vw; height: 35vh; background: rgba(30, 58, 138, 0.2); }

/* --- Layout Container --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

/* --- Typography --- */
.neon-text {
    font-size: 4rem;
    font-weight: 900;
    font-style: italic;
    color: white;
    text-shadow: 0 0 15px var(--neon-purple), 0 0 30px rgba(168, 85, 247, 0.4);
    letter-spacing: -2px;
}
.cursor { color: var(--neon-purple); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.subtitle {
    color: var(--neon-purple);
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* --- Auth / Profile Area --- */
.user-profile {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--panel-border);
    border-radius: 30px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}
.user-profile:hover { border-color: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); }

#user-name { font-family: monospace; font-size: 0.75rem; color: var(--neon-purple); font-weight: bold; }

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--neon-purple);
    overflow: hidden;
    background: #000;
}
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }

/* --- Glass Panels & Post Cards --- */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--panel-border);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--panel-shadow);
    margin-bottom: 2rem;
}

.post-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
}

.post-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.post-title { color: var(--neon-purple); font-family: monospace; font-size: 1.4rem; font-weight: bold; }
.post-date { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }
.post-snippet { color: var(--text-muted); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Buttons --- */
.btn-neon {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--neon-purple);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: monospace;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
    margin-top: 1rem;
}
.btn-neon:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    transform: scale(1.05);
}

.read-more {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--neon-purple);
    font-family: monospace;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- Full Post View --- */
.neon-text-small { font-size: 2.5rem; color: white; text-shadow: 0 0 10px var(--neon-purple); margin: 1.5rem 0; }
.back-btn { background: none; border: none; color: var(--text-muted); font-family: monospace; cursor: pointer; margin-bottom: 2rem; font-size: 0.9rem; }
.back-btn:hover { color: var(--neon-purple); }

.full-content img { max-width: 100%; border-radius: 12px; margin: 2rem 0; border: 1px solid var(--panel-border); }

/* --- Interaction Zone --- */
.interaction-zone { margin-top: 3rem; border-top: 1px solid var(--panel-border); padding-top: 2rem; }
.actions { display: flex; gap: 15px; }
.hidden { display: none !important; }
.active-like { background: #ef4444 !important; border-color: #ef4444 !important; box-shadow: 0 0 15px #ef4444 !important; }

textarea {
    width: 100%;
    height: 100px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: white;
    padding: 1rem;
    margin-top: 1rem;
    font-family: inherit;
    resize: none;
}

footer { text-align: center; opacity: 0.2; font-family: monospace; font-size: 0.7rem; margin-top: 5rem; padding-bottom: 2rem; }

/* --- Animations --- */
.loading { color: var(--neon-purple); font-family: monospace; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
