/*==================================================
      REDISEÑO MODERNO DE FORO (ASGAROS FORUM)
==================================================*/

/* Contenedor general del Foro */
#af-wrapper {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    color: #1e293b !important;
}

/*==================================================
        MENÚ DEL FORO MODERNO Y ELEGANTE
==================================================*/

/* Contenedor Header del Foro */
#af-wrapper #forum-header {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 20px !important;
    box-shadow: 0 4px 20px rgba(4, 3, 74, 0.05) !important;
    margin-bottom: 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

#af-wrapper #forum-header .clear {
    display: none !important;
}

/* Lista de enlaces del menú */
#af-wrapper #forum-navigation {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    float: none !important;
}

/* Enlaces del menú (Estilo Píldora) */
#af-wrapper #forum-navigation a {
    background: #f8fafc !important;
    color: #04034a !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 9px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
    float: none !important;
}

#af-wrapper #forum-navigation a:hover {
    background: #04034a !important;
    color: #ffffff !important;
    border-color: #04034a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(4, 3, 74, 0.15) !important;
}

/* 💡 AGREGAR ICONOS AUTOMÁTICOS A CADA PESTAÑA (FontAwesome) */
#af-wrapper #forum-navigation a.home-link::before {
    content: "\f015";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

#af-wrapper #forum-navigation a.profile-link::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

#af-wrapper #forum-navigation a.members-link::before {
    content: "\f0c0";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

#af-wrapper #forum-navigation a.subscriptions-link::before {
    content: "\f0f3";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

#af-wrapper #forum-navigation a.activity-link::before {
    content: "\f0e7";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

/* Botón especial para Salir */
#af-wrapper #forum-navigation a.logout-link {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

#af-wrapper #forum-navigation a.logout-link::before {
    content: "\f2f5";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

#af-wrapper #forum-navigation a.logout-link:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

/*====================================
      BUSCADOR DEL FORO
====================================*/

#af-wrapper #forum-search {
    float: none !important;
    margin: 0 !important;
    position: relative !important;
}

#af-wrapper #forum-search form {
    margin: 0 !important;
}

#af-wrapper #forum-search input[type="search"] {
    width: 220px !important;
    padding: 9px 14px 9px 36px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    background-color: #ffffff !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

#af-wrapper #forum-search input[type="search"]:focus {
    width: 260px !important; /* Se expande suavemente al dar clic */
    border-color: #5b9f3b !important;
    box-shadow: 0 0 0 3px rgba(91, 159, 59, 0.15) !important;
}

#af-wrapper #forum-search .search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    pointer-events: none !important;
}

/* Breadcrumbs (Migas de pan) */
#af-wrapper #forum-breadcrumbs {
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 20px !important;
}

#af-wrapper #forum-breadcrumbs a {
    color: #04034a !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#af-wrapper #forum-breadcrumbs a:hover {
    color: #5b9f3b !important;
}

/* Títulos de Categoría (Barra Azul Superior) */
#af-wrapper .title-element {
    background: #04034a !important;
    color: #ffffff !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 14px 20px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
    border: none !important;
}

/* Contenedor de la lista de Foros */
#af-wrapper .content-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

/* Filas de Foro Individuales */
#af-wrapper .content-element.forum {
    padding: 18px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.2s ease !important;
}

#af-wrapper .content-element.forum:hover {
    background-color: #f8fafc !important;
}

/* Iconos de estado del foro */
#af-wrapper .forum-status i {
    color: #5b9f3b !important;
    font-size: 22px !important;
}

/* Título del Foro */
#af-wrapper .forum-title {
    color: #04034a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#af-wrapper .forum-title:hover {
    color: #5b9f3b !important;
}

#af-wrapper .forum-description {
    color: #64748b !important;
    font-size: 13px !important;
}

/* Barra de Lectura / No Leído */
#af-wrapper #read-unread {
    background: #ffffff !important;
    padding: 12px 18px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 13px !important;
    margin-bottom: 24px !important;
}

#af-wrapper #read-unread a {
    color: #04034a !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#af-wrapper #read-unread a:hover {
    color: #5b9f3b !important;
}

/*====================================
      ESTADÍSTICAS DEL FORO
====================================*/

#af-wrapper #statistics {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

#af-wrapper #statistics .title-element-dark {
    background: #04034a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

#af-wrapper #statistics-body {
    padding: 20px !important;
}

#af-wrapper .statistics-element {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    transition: transform 0.2s ease !important;
}

#af-wrapper .statistics-element:hover {
    transform: translateY(-2px) !important;
}

#af-wrapper .statistics-element .element-number {
    color: #5b9f3b !important;
    font-weight: 800 !important;
    font-size: 20px !important;
}

#af-wrapper .statistics-element .element-name {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

#af-wrapper #statistics-online-users {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 15px !important;
    padding-top: 12px !important;
    font-size: 13px !important;
    color: #64748b !important;
}

#af-wrapper #statistics-online-users a {
    color: #04034a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}