@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --bg-dark: #0A0A0B;
    --bg-surface: rgba(18, 18, 20, 0.7);
    --accent: #8A2BE2;
    --accent-glow: rgba(138, 43, 226, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .brand {
    font-family: 'Outfit', sans-serif;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(10, 10, 11, 1), rgba(10, 10, 11, 0.95));
    animation: bgPulse 10s infinite alternate ease-in-out;
}

@keyframes bgPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    opacity: 0.6;
}

/* Glassmorphism */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(10, 10, 11, 0.8);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand span {
    color: var(--accent);
}

/* UI Elements */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #9d4eff;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.2);
    border-radius: 100px;
    color: #00FF7F;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00FF7F;
    border-radius: 50%;
    box-shadow: 0 0 10px #00FF7F;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    margin-top: 4rem;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.release-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    display: inline-block;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
        border-left: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 3rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .pricing-grid, .feature-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-container {
        grid-template-columns: 1fr !important;
        margin-top: 6rem;
    }
}

/* ============================================================ 
   FORUM SYSTEM UPGRADES (Nesting, Voting, Avatars)
   ============================================================ */

.forum-nested-container {
    margin-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 20px;
    position: relative;
}

.forum-nested-container::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 30px;
    background: var(--accent);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent) 0%, #4a148c 100%);
}

.vote-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-right: 1px solid var(--glass-border);
}

.vote-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.vote-btn:hover { color: var(--accent); transform: translateY(-2px); }
.vote-btn.active.up { color: #00FF7F; }
.vote-btn.active.down { color: #ff4757; }

.vote-score {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Fix link behavior in forum posts */
.post-body a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.view-more-replies {
    display: block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
    margin: 10px 0 20px 40px;
    color: var(--accent);
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.view-more-replies:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--accent);
}

/* Delete Button */
.btn-delete-post {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-delete-post:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Disabled vote buttons */
.vote-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.vote-btn:disabled:hover {
    color: var(--text-secondary);
    transform: none;
}

/* Score coloring */
.vote-score.positive { color: #00FF7F; }
.vote-score.negative { color: #ff4757; }

/* File Attachment */
.file-attachment {
    margin-top: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.file-attachment i {
    color: var(--accent);
}

.file-attachment a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.file-attachment a:hover {
    color: white;
    text-decoration: underline;
}
