/* * feed.css - Estilos base para el Layout, Posts y Widgets
 * Glassmorphism & UI Gaming 
 */

:root {
    --bg-dark: #090a0f;
    --glass-bg: rgba(15, 17, 26, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --primary-glow: #00f3ff;
    --accent-purple: #bc13fe;
}

/* Layout */
.nk-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    align-items: start;
    margin-top: 20px;
}
@media (max-width: 900px) {
    .nk-layout-grid { grid-template-columns: 1fr; }
    .nk-sidebar { display: none; } /* Ocultar sidebar en móviles por ahora */
}

/* Glass Core */
.nk-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Hero Banner */
.nk-hero-banner {
    background: linear-gradient(135deg, rgba(26,28,44,0.9) 0%, rgba(10,11,16,0.9) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}
.hero-content h1 { font-family: var(--fh, 'Space Grotesk', sans-serif); color: #fff; font-size: 32px; margin-bottom: 5px; }
.hero-content p { color: var(--text-muted); font-size: 16px; }
.hero-bg-fx {
    position: absolute; right: -50px; top: -50px;
    width: 250px; height: 250px;
    background: var(--primary-glow);
    filter: blur(120px); opacity: 0.15; pointer-events: none;
}

/* Composer Moderno */
.nk-composer { padding: 20px; margin-bottom: 25px; transition: 0.3s; }
.nk-composer:focus-within { border-color: var(--accent-purple); box-shadow: 0 0 20px rgba(188,19,254,0.1); }
.composer-body { display: flex; gap: 15px; align-items: flex-start; }
.composer-avatar { width: 50px; height: 50px; border-radius: 14px; background: rgba(0,0,0,0.3); }
.composer-body textarea {
    flex: 1; background: transparent; border: none; color: #fff; font-size: 16px; 
    resize: none; outline: none; min-height: 50px; font-family: inherit; margin-top: 10px;
}
.composer-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--glass-border);
}
.nk-btn-tool {
    cursor: pointer; padding: 8px 16px; border-radius: 12px; background: rgba(255,255,255,0.05);
    color: var(--text-muted); font-size: 14px; transition: 0.2s; font-weight: 600;
}
.nk-btn-tool:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nk-btn-launch {
    background: linear-gradient(135deg, var(--primary-glow), #0077ff);
    color: #000; border: none; padding: 10px 24px; border-radius: 12px;
    font-weight: 800; font-size: 15px; cursor: pointer; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}
.nk-btn-launch:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 243, 255, 0.5); }
.composer-preview { position:relative; margin-left:65px; margin-top:10px; display:inline-block; }
.composer-preview img { max-height: 150px; border-radius: 12px; border: 1px solid var(--glass-border); }
.remove-img { position:absolute; top:5px; right:5px; background:rgba(0,0,0,0.7); color:#fff; border:none; border-radius:50%; width:24px; height:24px; cursor:pointer;}

/* Posts */
.nk-post { padding: 22px; margin-bottom: 25px; position: relative; transition: transform 0.2s; }
.post-header { margin-bottom: 15px; }
.post-author-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.post-avatar { width: 48px; height: 48px; border-radius: 14px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); transition: 0.2s; }
.post-author-link:hover .post-avatar { transform: scale(1.05); border-color: var(--primary-glow); }
.post-name { font-weight: 700; color: #fff; font-size: 16px; display: flex; align-items: center; gap: 5px; }
.post-time { font-size: 13px; color: var(--text-muted); }
.badge-verify { color: var(--primary-glow); font-size: 12px; text-shadow: 0 0 8px var(--primary-glow); }

/* Menciones y Tags */
.nk-mention { color: var(--primary-glow); background: rgba(0,243,255,0.1); padding: 2px 6px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.nk-hashtag { color: var(--accent-purple); text-decoration: none; font-weight: 600; }

/* Media Inteligente (NO gigante) */
.post-body { margin-left: 60px; }
@media(max-width: 600px) { .post-body, .post-footer { margin-left: 0 !important; margin-top: 15px; } }
.post-text { font-size: 15px; line-height: 1.6; color: var(--text-main); margin-bottom: 12px; word-wrap: break-word;}
.post-media-container {
    border-radius: 16px; overflow: hidden; max-height: 400px;
    background: #000; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--glass-border); cursor: pointer;
}
.post-media { max-width: 100%; max-height: 400px; object-fit: contain; }

.post-footer { display: flex; align-items: center; justify-content: space-between; margin-left: 60px; margin-top: 15px; }
.post-comment-btn { 
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    padding: 8px 16px; border-radius: 20px; color: var(--text-muted); text-decoration: none;
    font-size: 13px; font-weight: 600; transition: 0.2s;
}
.post-comment-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Widgets */
.nk-identity-card { padding: 0; overflow: hidden; margin-bottom: 20px; }
.nk-id-cover { height: 70px; background: linear-gradient(135deg, var(--accent-purple), #4a00e0); }
.nk-id-avatar-box { text-align: center; margin-top: -35px; position: relative; }
.nk-id-avatar { width: 70px; height: 70px; border-radius: 18px; background: var(--bg-dark); border: 2px solid var(--bg-dark); }
.nk-status-ring { position: absolute; bottom: 0; right: 50%; transform: translateX(35px); width: 14px; height: 14px; background: #10b981; border: 2px solid var(--bg-dark); border-radius: 50%; }
.nk-id-info { padding: 15px; text-align: center; }
.nk-id-info h3 { margin: 0 0 5px 0; color: #fff; font-size: 18px; }
.nk-id-info p { margin: 0 0 10px 0; color: var(--text-muted); font-size: 13px; }
.nk-level-tag { display: inline-block; background: rgba(255,234,0,0.1); color: #ffea00; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,234,0,0.3); }

.nk-ranking-widget { padding: 0; overflow: hidden; }
.nk-widget-header { background: rgba(255,255,255,0.02); padding: 15px; border-bottom: 1px solid var(--glass-border); font-weight: 800; font-size: 14px; text-transform: uppercase; color: #fff; }
.nk-ranking-list { display: flex; flex-direction: column; }
.nk-rank-item { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.02); text-decoration: none; transition: 0.2s; }
.nk-rank-item:hover { background: rgba(0,243,255,0.05); padding-left: 20px; }
.rank-pos { font-family: var(--fh); font-size: 16px; font-weight: 800; color: var(--text-muted); width: 20px; }
.rank-pos.pos-1 { color: #ffea00; text-shadow: 0 0 10px rgba(255,234,0,0.5); }
.rank-pos.pos-2 { color: #cbd5e1; }
.rank-pos.pos-3 { color: #b45309; }
.nk-rank-item img { width: 36px; height: 36px; border-radius: 10px; background: rgba(0,0,0,0.5); }
.rank-info { display: flex; flex-direction: column; }
.rank-name { color: #fff; font-weight: 600; font-size: 14px; }
.rank-pts { color: var(--primary-glow); font-size: 12px; font-weight: 700; }
/* ── NK_UI comment input ──────────────────────────── */
.nk-cmt-input-row { display:flex; gap:8px; padding:8px 15px; align-items:flex-end; border-top:1px solid var(--glass-border,rgba(255,255,255,.08)); }
.nk-cmt-ta { flex:1; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:12px; color:#e2e8f0; padding:8px 12px; font-size:13px; font-family:inherit; resize:none; outline:none; }
.nk-cmt-ta:focus { border-color:var(--primary-glow,#00f3ff); }
.nk-cmts { padding:8px 0; }
.nk-cmt { display:flex; gap:10px; padding:6px 15px; }
.nk-cmt-av { width:32px; height:32px; border-radius:10px; background:#111; object-fit:cover; }
.nk-av-fb { image-rendering:pixelated; }
.nk-cmt-bubble { flex:1; background:rgba(255,255,255,.04); border-radius:0 12px 12px 12px; padding:8px 12px; }
.nk-cmt-author { color:#fff; font-weight:700; font-size:13px; text-decoration:none; }
.nk-cmt-author:hover { color:var(--primary-glow,#00f3ff); }
.nk-cmt-time { color:#64748b; font-size:11px; }
.nk-cmt-text { font-size:13px; color:#cbd5e1; line-height:1.5; margin-top:2px; }
.nk-cmt-del { background:none; border:none; cursor:pointer; color:#64748b; font-size:11px; padding:0 2px; }
.nk-cmt-del:hover { color:#f87171; }
.nk-cmt-lbtn { background:none; border:none; cursor:pointer; color:#64748b; font-size:12px; padding:2px 4px; border-radius:6px; }
.nk-cmt-lbtn.on { color:#f472b6; }
.nk-cmt-lbtn:hover { background:rgba(255,255,255,.06); }

/* ── Like/action button states ────────────────────── */
.like-btn.on { color:#f59e0b; }
.rkk-btn.on  { color:var(--primary-glow,#00f3ff); }
.nk-act { background:none; border:1px solid rgba(255,255,255,.06); border-radius:20px; padding:6px 14px; color:#94a3b8; cursor:pointer; font-size:13px; font-weight:600; transition:.2s; }
.nk-act:hover { background:rgba(255,255,255,.07); color:#fff; }
.nk-post-actions { display:flex; gap:8px; margin-left:60px; margin-top:12px; flex-wrap:wrap; }
@media(max-width:600px){ .nk-post-actions { margin-left:0; } }

/* ── Anim ─────────────────────────────────────────── */
@keyframes nkFadeIn { from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.nk-anim { animation:nkFadeIn .3s ease both; }
