/* =====================================================
   BASE GLOBAL (NO layout)
   ===================================================== */

body {
    background: #f5f5f7;
    margin: 0;
    overflow-x: hidden;
}

body, td, input, textarea {
    font-size: 15px;
    color: #5c6170;
    font-weight: 500;
    font-family: "Nunito", sans-serif;
    line-height: 1.8em;
    -webkit-font-smoothing: antialiased;
}


/* =====================================================
   LAYOUT BASE ? SOLO P?GINAS NORMALES
   (EXCLUYE SEARCH Y VISTAS ESPECIALES)
   ===================================================== */

.anon-page-index .anon-body-in,
.anon-page-home .anon-body-in,
.anon-page-tag .anon-body-in,
.anon-page-category .anon-body-in,
.anon-page-user .anon-body-in,
.anon-page-question .anon-body-in {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px;
    box-sizing: border-box;
}


/* =====================================================
   RESET ESPEC?FICO PARA SEARCH
   ===================================================== */

.anon-template-search .anon-body-in {
    max-width: none;
    margin: 0;
    padding: 0;
}


/* =====================================================
   NAVBAR BASE
   ===================================================== */
/* DAY (tu regla) */
.anon-headerf{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaeaf0;
}

/* NIGHT */
.anon-night .anon-headerf{
  background: rgba(8, 10, 14, 0.78);              /* slate oscuro */
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1100;                                  /* por si te lo pisan */
}

/* enlaces/texto dentro del navbar (muy típico que “desaparezcan”) */
.anon-night .anon-headerf,
.anon-night .anon-headerf a,
.anon-night .anon-headerf i,
.anon-night .anon-headerf .reglink,
.anon-night .anon-headerf .header-right ul li span{
  color: #efefef !important;
}

.anon-header {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.anon-logo-link {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
    text-decoration: none;
}


/* =====================================================
   REGISTER ? CARD MODERNA
   ===================================================== */

.anon-page-register .anon-part-form {
    max-width: 420px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.anon-page-register .anon-form-tall-table,
.anon-page-register .anon-form-tall-table tbody,
.anon-page-register .anon-form-tall-table tr,
.anon-page-register .anon-form-tall-table td {
    display: block;
    width: 100%;
}

.anon-page-register .anon-form-tall-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.anon-page-register .anon-form-tall-text,
.anon-page-register .anon-form-tall-number {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    transition: border .2s, box-shadow .2s;
}

.anon-page-register .anon-form-tall-text:focus,
.anon-page-register .anon-form-tall-number:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.anon-page-register .anon-form-tall-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.anon-page-register #qa_captcha_div_1 {
    margin-top: 10px;
}

.anon-page-register #qa_captcha_div_1 img {
    border-radius: 8px;
}

.anon-page-register .anon-form-tall-button-register {
    width: 100%;
    height: 46px;
    margin-top: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.anon-page-register .anon-form-tall-button-register:hover {
    filter: brightness(1.05);
}

.anon-page-register .hllink {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
}

.anon-page-register .hllink:hover {
    text-decoration: underline;
}

/* =====================================================
   HEADER RIGHT ? USER / ACTIONS
   ===================================================== */

.header-right {
    flex: 0 0 auto;
}

.header-right > ul {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* contexto para dropdown */
.header-right li {
    position: relative;
}


/* Bot?n + */

.anon-submit .anonadd {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.anon-submit .anonadd:hover {
    background: #e0e7ff;
    transform: scale(1.05);
}


/* Search icon */

.search-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.search-toggle:hover {
    background: #f1f5f9;
}


/* =====================================================
   USER DROPDOWN � PRO LEVEL (FIXED)
   ===================================================== */

/* evitar que el header corte el dropdown */
.anon-header,
.anon-header-in,
.anon-header ul,
.anon-header li {
    overflow: visible !important;
}

/* el <li> del avatar es el ancla */
.header-right li {
    position: relative;
}

.user-box-point {
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 500;
    color: #ffffff;

    background: #5ac8ff;
    padding: 4px 10px;
    border-radius: 999px;
}


/* ======================
   LISTA DE ACCIONES
   ====================== */

.anon-nav-user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* enlaces */
.anon-nav-user-link {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}

.anon-nav-user-link:hover {
    background: #f1f5f9;
    color: #111827;
}

/* separaci?n visual antes del logout */
.anon-nav-user-logout {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eaeaf0;
}

.anon-nav-user-logout .anon-nav-user-link {
    color: #dc2626;
}

.anon-nav-user-logout .anon-nav-user-link:hover {
    background: #fee2e2;
}

/* =====================================================
   NAV SUB ? FLUID TABS (FIXED & REFINED)
   ===================================================== */

/* =====================================================
   LOGO ? PREMIUM ANIMATION
   ===================================================== */

.anon-logo {
    display: flex;
    align-items: center;
    height: 64px;
}

.anon-logo-link {
    animation: logoFadeUp .6s ease both;
}

@keyframes logoFadeUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   HARD OVERRIDE ? anon-main.post-page (QUESTION ONLY)
   ===================================================== */

/* ?? Anula TODAS las definiciones del CSS maestro */
.anon-template-question .anon-main.post-page {
    width: 100% !important;        /* mata 870px y auto */
    max-width: 1320px;             /* l?mite real del layout */
    margin: 0 auto 20px !important;
    gap: 32px;

    padding: 0 20px;
    box-sizing: border-box;
}

/* ?? Contenido principal estable */
.anon-template-question .anon-main-in {
    flex: 0 1 840px;
    max-width: 840px;
    width: 100%;

    padding: 0 !important;
    box-sizing: border-box;
}

/* ?? Sidebar estable */
.anon-template-question .rightsidebar {
    flex: 0 0 300px;
}

/* =====================================================
   VIDEO ? BLOQUEADO AL MISMO SISTEMA DE ANCHO
   ===================================================== */

.anon-template-question .anon-video-wrap {
    max-width: 1320px;
    margin: 16px auto 32px;
    padding: 0 20px;
    box-sizing: border-box;

    display: flex;
}

.anon-template-question .anon-video {
    width: 100%;
    max-width: 840px;   /* EXACTAMENTE igual que el post */
    aspect-ratio: 16 / 9;

    position: relative;
    background: #0b0b0d;

    border-radius: 16px;
    overflow: hidden;
}

.anon-template-question .anon-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   RESPONSIVE ? UNA SOLA L?GICA
   ===================================================== */

@media (max-width: 1024px) {
    .anon-template-question .anon-main.post-page {
        flex-direction: column;
        gap: 24px;
    }

    .anon-template-question .rightsidebar {
        width: 100%;
        max-width: 840px;
    }

    .anon-template-question .anon-video {
        max-width: 100%;
    }
}

/* =====================================================
   HIDE REACTIONS (QUESTION PAGE)
   ===================================================== */

.anon-template-question .pboxes > .reactions,
.anon-template-question .reactions {
    display: none !important;
}

/* HIDE REACTIONS GLOBAL */
.reactions {
    display: none !important;
}

/* =====================================================
   HIDE EMPTY COMMENT / TAB BLOCK (QUESTION PAGE)
   ===================================================== */

.anon-template-question .maincom {
    display: none !important;
}

a.anon-next-q {
    margin: auto;
}

a.anon-prev-q {
    margin: auto;
}

/* OCULTAR FEATURED ORIGINAL (GRID EST?TICO) */
.anon-featureds:not(.fav-carousel),
.anon-featureds:not(.fav-carousel) .anon-featured-grid {
    display: none !important;
}

.leftmenu.anonscroll.open {
    border-radius: 18px;
}

/* Ocultar pesta?as Followers y Following */
/* Ocultar Followers / Following (todas las variantes) */
.anon-nav-sub-follower,
.anon-nav-sub-followers,
.anon-nav-sub-following {
    display: none !important;
}

/* Dejar solo Posts visible en estad?sticas */
.anon-stats span:not(:first-child) {
    display: none;
}

.menutoggle {
    display: none !important;
}

/* ===== Bulk Import (TXT) in video submit ===== */
.bulk-import {
  margin: 0 0 12px 0;
}

.bulk-import-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px 0;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 13px;
  color: inherit;
}

.bulk-import-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: currentColor; /* usa el color del tema */
}

.bulk-import-box {
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0,0,0,.02);
}

.bulk-import-box .anon-form-tall-text[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.8);
  outline: none;
}

.bulk-import-help {
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
  line-height: 1.35;
}
