/* web-forum/forum.css - Estilos del Foro Oficial OASIS #1 */
:root {
    --bg-dark: #050811;
    --bg-card: rgba(13, 22, 40, 0.75);
    --bg-card-hover: rgba(20, 32, 58, 0.9);
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.4);
    --cyan: #00E5FF;
    --cyan-glow: rgba(0, 229, 255, 0.4);
    --purple: #9333EA;
    --text-main: #F8FAFC;
    --text-sub: #94A3B8;
    --font-main: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(147, 51, 234, 0.06) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

/* NAVBAR */
.forum-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 8, 17, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forum-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.accent-gold {
    color: var(--gold);
}

.brand-badge {
    background: rgba(0, 229, 255, 0.12);
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 0.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-discord-login {
    background: #5865F2;
    color: #FFF;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-discord-login:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.user-avatar-small {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid var(--gold);
}

/* MAIN LAYOUT (FULL SCREEN FLUID WIDTH) */
.forum-container {
    max-width: 96%;
    width: 96%;
    margin: 1.2rem auto;
    padding: 0;
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 1.2rem;
    flex: 1;
}

/* SIDEBAR CATEGORIES */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
    backdrop-filter: blur(12px);
}

.cat-title {
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
    font-size: 0.84rem;
}

.cat-item:hover, .cat-item.active {
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
}

.btn-new-thread {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, #F59E0B 100%);
    color: #050811;
    border: none;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 20px var(--gold-glow);
    transition: all 0.2s ease;
}

.btn-new-thread:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--gold-glow);
}

/* PANEL DERECHO DE STAFF CONECTADOS COMPACTO */
.right-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.staff-widget-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    background: rgba(5, 8, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.staff-widget-item:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
    transform: translateY(-2px);
}

.staff-avatar-mini {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--gold);
    object-fit: cover !important;
    flex-shrink: 0;
}

.staff-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-role-sub {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 700;
}

.verification-badge {
    margin-top: 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* RESPONSIVE DESIGN (3 COLUMNAS) */
@media (max-width: 1200px) {
    .forum-container {
        grid-template-columns: 200px 1fr 220px;
    }
}

@media (max-width: 992px) {
    .forum-container {
        grid-template-columns: 200px 1fr;
    }
    .right-sidebar-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .forum-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        padding: 0 0.8rem;
    }
}

/* THREADS LIST */
.threads-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.forum-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.search-input {
    background: rgba(5, 8, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    width: 300px;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
}

.thread-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.4rem;
    backdrop-filter: blur(12px);
    transition: all 0.25 ease;
    display: flex;
    gap: 1.2rem;
}

.thread-card:hover {
    border-color: var(--cyan);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.thread-card.pinned {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.04);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.thread-content {
    flex: 1;
}

.thread-top-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.tag-badge {
    background: rgba(0, 229, 255, 0.15);
    color: var(--cyan);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
}

.tag-badge.oficial {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.thread-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.2s ease;
}

.thread-title:hover {
    color: var(--gold);
}

.thread-snippet {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.thread-bottom-meta {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 0.82rem;
    color: var(--text-sub);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* THREAD VIEW DETAIL PAGE */
.thread-detail-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(16px);
    margin-bottom: 2rem;
}

.reply-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.2rem;
}

/* PROFILE PAGE & PROFILE WALL */
.profile-header-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(16px);
}

.profile-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-info-bar {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.profile-user-left {
    display: flex;
    align-items: flex-end;
    gap: 1.4rem;
}

.profile-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 25px var(--gold-glow);
    background: var(--bg-dark);
}

.profile-names h2 {
    font-size: 1.8rem;
    font-weight: 900;
}

.profile-role-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 0.3rem;
}

.profile-wall-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.8rem;
    backdrop-filter: blur(14px);
}

.wall-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.wall-textarea {
    flex: 1;
    background: rgba(5, 8, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 12px;
    font-family: inherit;
    resize: none;
    height: 70px;
}

.wall-textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* RESPONSIVE DESIGN */
@media (max-width: 850px) {
    .forum-container {
        grid-template-columns: 1fr;
    }
}
