/* Nexus Community Cyberpunk Styles */
:root {
    --nx-bg: #0b0f19;
    --nx-panel: #151a25;
    --nx-border: #252b3b;
    --nx-primary: #00f0ff;
    --nx-primary-glow: rgba(0, 240, 255, 0.2);
    --nx-secondary: #bc13fe;
    --nx-text: #e0e6ed;
    --nx-muted: #8b9bb4;
}

body.page-template-page-comunidad {
    background: var(--nx-bg);
    color: var(--nx-text);
    font-family: 'Inter', sans-serif;
}

.nexus-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 30px;
}

/* Sidebar Nav */
.nexus-sidebar-nav {
    position: sticky;
    top: 100px;
}

.nexus-nav-item {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: var(--nx-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nexus-nav-item:hover,
.nexus-nav-item.active {
    background: rgba(0, 240, 255, 0.05);
    color: var(--nx-primary);
    border-color: rgba(0, 240, 255, 0.1);
}

.nexus-nav-item.active {
    box-shadow: 0 0 15px var(--nx-primary-glow);
}

.nexus-nav-item i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

/* Main Feed */
.nexus-main {
    min-width: 0;
    /* Prevent overflow */
}

.nexus-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nexus-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.nexus-filter-chip {
    background: var(--nx-panel);
    border: 1px solid var(--nx-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.nexus-filter-chip:hover,
.nexus-filter-chip.active {
    border-color: var(--nx-primary);
    color: var(--nx-primary);
}

.btn-primary-glow {
    background: var(--nx-primary);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px var(--nx-primary-glow);
    transition: 0.2s;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--nx-primary-glow);
}

/* Cards */
.nexus-card {
    background: var(--nx-panel);
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.2s;
}

.nexus-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

.nexus-card.solved {
    border-left: 4px solid #00ff00;
}

.nc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.nc-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nc-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nc-name {
    display: block;
    font-weight: 600;
    color: #fff;
}

.nc-time {
    font-size: 0.8rem;
    color: var(--nx-muted);
}

.nexus-card-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    background: #333;
}

.type-duda {
    background: rgba(255, 165, 0, 0.2);
    color: orange;
}

.type-idea {
    background: rgba(0, 240, 255, 0.2);
    color: var(--nx-primary);
}

.type-bug {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
}

.nc-title {
    margin: 0 0 10px 0;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.2rem;
}

.nc-content {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 15px;
}

.nc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.nc-actions {
    display: flex;
    gap: 15px;
}

.nc-action-btn {
    background: none;
    border: none;
    color: var(--nx-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.nc-action-btn:hover,
.nc-action-btn.active {
    color: var(--nx-primary);
}

/* Modal */
.nexus-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.nexus-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.nexus-modal-content {
    position: relative;
    background: var(--nx-panel);
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--nx-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.format-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.format-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}

.format-option.selected {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--nx-primary);
    color: var(--nx-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nx-border);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: inherit;
}

.solved-icon {
    color: #00ff00;
    margin-left: 5px;
}