/**
 * BuddyPress Custom Styles for G-Project Theme
 * Integración con Tailwind CSS
 * 
 * Colores del tema:
 * - Primary: #1E40AF (blue-700)
 * - Secondary: #F59E0B (amber-500)
 * - Accent: #10B981 (emerald-500)
 */

/* ============================================
   RESET Y BASE
   ============================================ */

#buddypress {
    font-family: 'Montserrat', sans-serif;
}

#buddypress h1,
#buddypress h2,
#buddypress h3,
#buddypress h4,
#buddypress h5,
#buddypress h6 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    color: #111827;
}

#buddypress a {
    color: #1E40AF;
    text-decoration: none;
    transition: all 0.2s ease;
}

#buddypress a:hover {
    color: #1e3a8a;
}

/* ============================================
   NAVEGACIÓN PRINCIPAL
   ============================================ */

#buddypress nav.bp-navs {
    background: #f9fafb;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

#buddypress nav.bp-navs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#buddypress nav.bp-navs ul li {
    margin: 0;
}

#buddypress nav.bp-navs ul li a,
#buddypress nav.bp-navs ul li span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
    text-decoration: none;
}

#buddypress nav.bp-navs ul li a:hover {
    background: #e5e7eb;
    color: #111827;
}

#buddypress nav.bp-navs ul li.current a,
#buddypress nav.bp-navs ul li.selected a {
    background: #1E40AF;
    color: white;
}

#buddypress nav.bp-navs ul li a .count,
#buddypress nav.bp-navs ul li span .count {
    background: #e5e7eb;
    color: #4b5563;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

#buddypress nav.bp-navs ul li.current a .count,
#buddypress nav.bp-navs ul li.selected a .count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Sub navegación */
#buddypress nav.bp-navs.bp-subnavs {
    background: white;
    border: 1px solid #e5e7eb;
}

#buddypress nav.bp-navs.bp-subnavs ul li a {
    font-size: 13px;
    padding: 8px 12px;
}

/* ============================================
   HEADER DE PERFIL DE USUARIO
   ============================================ */

#buddypress #item-header {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

#buddypress #item-header #cover-image-container {
    height: 200px;
    background-size: cover;
    background-position: center;
}

#buddypress #item-header #item-header-content {
    padding: 0 32px 32px;
    position: relative;
    margin-top: -60px;
}

#buddypress #item-header #item-header-avatar {
    float: none;
    margin: 0 0 16px 0;
}

#buddypress #item-header #item-header-avatar a {
    display: block;
}

#buddypress #item-header #item-header-avatar img.avatar {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: white;
}

#buddypress #item-header #item-header-content h1,
#buddypress #item-header #item-header-content h2 {
    color: white;
    font-size: 28px;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#buddypress #item-header .bp-member-type,
#buddypress #item-header .item-meta {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

#buddypress #item-header .bp-member-type {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Botones de acción en header */
#buddypress #item-header #item-buttons {
    position: absolute;
    top: 24px;
    right: 32px;
    display: flex;
    gap: 8px;
}

#buddypress #item-header #item-buttons .generic-button a,
#buddypress #item-header #item-buttons button {
    background: white;
    color: #1E40AF;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#buddypress #item-header #item-buttons .generic-button a:hover,
#buddypress #item-header #item-buttons button:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* ============================================
   DIRECTORIO DE MIEMBROS
   ============================================ */

#buddypress #members-dir-list,
#buddypress #members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#buddypress #members-dir-list li.item-entry,
#buddypress #members-list li {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    transition: all 0.3s ease;
    list-style: none;
}

#buddypress #members-dir-list li.item-entry:hover,
#buddypress #members-list li:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #1E40AF;
}

#buddypress #members-dir-list .item-avatar,
#buddypress #members-list .item-avatar {
    text-align: center;
    margin-bottom: 16px;
}

#buddypress #members-dir-list .item-avatar img.avatar,
#buddypress #members-list .item-avatar img.avatar {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 3px solid #f3f4f6;
}

#buddypress #members-dir-list .item-title,
#buddypress #members-list .item-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

#buddypress #members-dir-list .item-title a,
#buddypress #members-list .item-title a {
    color: #111827;
}

#buddypress #members-dir-list .item-title a:hover,
#buddypress #members-list .item-title a:hover {
    color: #1E40AF;
}

#buddypress #members-dir-list .item-meta,
#buddypress #members-list .item-meta {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

#buddypress #members-dir-list .action,
#buddypress #members-list .action {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

#buddypress #members-dir-list .action .generic-button a,
#buddypress #members-list .action .generic-button a {
    background: #f3f4f6;
    color: #374151;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#buddypress #members-dir-list .action .generic-button a:hover,
#buddypress #members-list .action .generic-button a:hover {
    background: #1E40AF;
    color: white;
}

/* ============================================
   ACTIVITY STREAM
   ============================================ */

#buddypress #activity-stream {
    list-style: none;
    padding: 0;
    margin: 0;
}

#buddypress #activity-stream li.activity-item {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

#buddypress #activity-stream li.activity-item:hover {
    border-color: #d1d5db;
}

#buddypress #activity-stream .activity-avatar {
    float: left;
    margin-right: 16px;
}

#buddypress #activity-stream .activity-avatar img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

#buddypress #activity-stream .activity-header {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.5;
}

#buddypress #activity-stream .activity-header a {
    font-weight: 600;
    color: #111827;
}

#buddypress #activity-stream .activity-header .time-since {
    color: #9ca3af;
    font-size: 13px;
}

#buddypress #activity-stream .activity-content {
    margin-left: 64px;
}

#buddypress #activity-stream .activity-inner {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 12px;
}

#buddypress #activity-stream .activity-inner p {
    margin: 0 0 12px 0;
}

#buddypress #activity-stream .activity-inner img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 12px;
}

/* Activity Meta (likes, comments) */
#buddypress #activity-stream .activity-meta {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-left: 64px;
}

#buddypress #activity-stream .activity-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#buddypress #activity-stream .activity-meta a:hover {
    background: #f3f4f6;
    color: #1E40AF;
}

#buddypress #activity-stream .activity-meta a.fav,
#buddypress #activity-stream .activity-meta a.unfav {
    color: #ef4444;
}

/* Activity Comments */
#buddypress #activity-stream .activity-comments {
    margin-left: 64px;
    margin-top: 16px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
}

#buddypress #activity-stream .activity-comments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#buddypress #activity-stream .activity-comments li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

#buddypress #activity-stream .activity-comments li:last-child {
    border-bottom: none;
}

/* Post Form */
#buddypress #whats-new-form,
#buddypress form#whats-new-form {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 24px;
}

#buddypress #whats-new-form #whats-new-avatar {
    float: left;
    margin-right: 16px;
}

#buddypress #whats-new-form #whats-new-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

#buddypress #whats-new-form #whats-new-content {
    margin-left: 64px;
}

#buddypress #whats-new-form textarea#whats-new {
    width: 100%;
    min-height: 100px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    transition: border-color 0.2s ease;
}

#buddypress #whats-new-form textarea#whats-new:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

#buddypress #whats-new-form #whats-new-submit {
    margin-top: 12px;
    text-align: right;
}

#buddypress #whats-new-form #whats-new-submit input[type="submit"] {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#buddypress #whats-new-form #whats-new-submit input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,64,175,0.3);
}

/* ============================================
   GRUPOS
   ============================================ */

#buddypress #groups-dir-list,
#buddypress #groups-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#buddypress #groups-dir-list li.item-entry,
#buddypress #groups-list li {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

#buddypress #groups-dir-list li.item-entry:hover,
#buddypress #groups-list li:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

#buddypress #groups-dir-list .item-avatar,
#buddypress #groups-list .item-avatar {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    padding: 24px;
    text-align: center;
}

#buddypress #groups-dir-list .item-avatar img.avatar,
#buddypress #groups-list .item-avatar img.avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 3px solid rgba(255,255,255,0.3);
}

#buddypress #groups-dir-list .item,
#buddypress #groups-list .item {
    padding: 20px;
}

#buddypress #groups-dir-list .item-title,
#buddypress #groups-list .item-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

#buddypress #groups-dir-list .item-meta,
#buddypress #groups-list .item-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

#buddypress #groups-dir-list .item-meta .activity,
#buddypress #groups-list .item-meta .activity {
    display: block;
    margin-top: 4px;
}

#buddypress #groups-dir-list .item-desc,
#buddypress #groups-list .item-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

#buddypress #groups-dir-list .action,
#buddypress #groups-list .action {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

#buddypress #groups-dir-list .action .generic-button a,
#buddypress #groups-list .action .generic-button a {
    background: #1E40AF;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

#buddypress #groups-dir-list .action .generic-button a:hover,
#buddypress #groups-list .action .generic-button a:hover {
    background: #1e3a8a;
}

/* ============================================
   MENSAJES
   ============================================ */

#buddypress #message-threads {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

#buddypress #message-threads li {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

#buddypress #message-threads li:hover {
    background: #f9fafb;
}

#buddypress #message-threads li:last-child {
    border-bottom: none;
}

#buddypress #message-threads li.unread {
    background: #eff6ff;
}

#buddypress #message-threads .thread-avatar {
    margin-right: 16px;
}

#buddypress #message-threads .thread-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

#buddypress #message-threads .thread-content {
    flex: 1;
}

#buddypress #message-threads .thread-from {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
}

#buddypress #message-threads .thread-subject {
    color: #4b5563;
    font-size: 14px;
}

#buddypress #message-threads .thread-date {
    color: #9ca3af;
    font-size: 13px;
}

/* Conversación de mensajes */
#buddypress #message-thread {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

#buddypress #message-thread .message-box {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

#buddypress #message-thread .message-box:last-of-type {
    border-bottom: none;
}

#buddypress #message-thread .message-metadata {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

#buddypress #message-thread .message-metadata img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

#buddypress #message-thread .message-metadata .user-link {
    font-weight: 600;
    color: #111827;
}

#buddypress #message-thread .message-metadata .activity {
    color: #9ca3af;
    font-size: 13px;
}

#buddypress #message-thread .message-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin-left: 52px;
}

/* Formulario de respuesta */
#buddypress #send-reply {
    background: #f9fafb;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

#buddypress #send-reply textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    margin-bottom: 12px;
}

#buddypress #send-reply textarea:focus {
    outline: none;
    border-color: #1E40AF;
}

#buddypress #send-reply input[type="submit"] {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   NOTIFICACIONES
   ============================================ */

#buddypress #notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#buddypress #notifications-list li {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 16px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

#buddypress #notifications-list li:hover {
    border-color: #1E40AF;
}

#buddypress #notifications-list li.unread {
    background: #eff6ff;
    border-color: #bfdbfe;
}

#buddypress #notifications-list .notification-description {
    font-size: 14px;
    color: #374151;
}

#buddypress #notifications-list .notification-description a {
    font-weight: 600;
}

#buddypress #notifications-list .notification-actions {
    display: flex;
    gap: 8px;
}

#buddypress #notifications-list .notification-actions a {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: #f3f4f6;
    color: #4b5563;
}

#buddypress #notifications-list .notification-actions a:hover {
    background: #e5e7eb;
}

/* ============================================
   FORMULARIOS
   ============================================ */

#buddypress input[type="text"],
#buddypress input[type="email"],
#buddypress input[type="password"],
#buddypress input[type="url"],
#buddypress input[type="tel"],
#buddypress input[type="number"],
#buddypress input[type="search"],
#buddypress select,
#buddypress textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
    background: white;
}

#buddypress input:focus,
#buddypress select:focus,
#buddypress textarea:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

#buddypress label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

#buddypress .editfield {
    margin-bottom: 20px;
}

/* ============================================
   BOTONES
   ============================================ */

#buddypress input[type="submit"],
#buddypress input[type="button"],
#buddypress button,
#buddypress a.button,
#buddypress .generic-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

#buddypress input[type="submit"]:hover,
#buddypress input[type="button"]:hover,
#buddypress button:hover,
#buddypress a.button:hover,
#buddypress .generic-button a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,64,175,0.3);
}

#buddypress input[type="submit"]:active,
#buddypress button:active {
    transform: translateY(0);
}

/* Botón secundario */
#buddypress .button.secondary,
#buddypress input.secondary {
    background: #f3f4f6;
    color: #374151;
}

#buddypress .button.secondary:hover,
#buddypress input.secondary:hover {
    background: #e5e7eb;
    box-shadow: none;
}

/* Botón de peligro */
#buddypress .button.danger,
#buddypress input.danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

/* ============================================
   FILTROS Y BÚSQUEDA
   ============================================ */

#buddypress .dir-search,
#buddypress .groups-search,
#buddypress .members-search {
    margin-bottom: 24px;
}

#buddypress .dir-search form,
#buddypress .bp-search form {
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

#buddypress .dir-search input[type="search"],
#buddypress .bp-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
}

#buddypress .dir-search input[type="search"]:focus,
#buddypress .bp-search input[type="search"]:focus {
    box-shadow: none;
}

#buddypress .dir-search input[type="submit"],
#buddypress .bp-search input[type="submit"] {
    padding: 10px 20px;
}

/* Filtros */
#buddypress .item-list-tabs,
#buddypress .type-navs {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    margin-bottom: 24px;
}

#buddypress .item-list-tabs ul,
#buddypress .type-navs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#buddypress .item-list-tabs ul li a,
#buddypress .type-navs ul li a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
}

#buddypress .item-list-tabs ul li.selected a,
#buddypress .type-navs ul li.current a {
    background: #1E40AF;
    color: white;
}

/* ============================================
   PAGINACIÓN
   ============================================ */

#buddypress .pagination,
#buddypress .bp-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
}

#buddypress .pagination .pag-count,
#buddypress .bp-pagination .pag-count {
    color: #6b7280;
    font-size: 14px;
}

#buddypress .pagination .pagination-links,
#buddypress .bp-pagination .bp-pagination-links {
    display: flex;
    gap: 4px;
}

#buddypress .pagination .pagination-links a,
#buddypress .pagination .pagination-links span,
#buddypress .bp-pagination .bp-pagination-links a,
#buddypress .bp-pagination .bp-pagination-links span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5563;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

#buddypress .pagination .pagination-links a:hover,
#buddypress .bp-pagination .bp-pagination-links a:hover {
    background: #1E40AF;
    color: white;
    border-color: #1E40AF;
}

#buddypress .pagination .pagination-links .current,
#buddypress .bp-pagination .bp-pagination-links .current {
    background: #1E40AF;
    color: white;
    border-color: #1E40AF;
}

/* ============================================
   ALERTAS Y MENSAJES
   ============================================ */

#buddypress #message,
#buddypress .bp-feedback {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#buddypress #message.info,
#buddypress .bp-feedback.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

#buddypress #message.success,
#buddypress .bp-feedback.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

#buddypress #message.error,
#buddypress .bp-feedback.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

#buddypress #message.warning,
#buddypress .bp-feedback.warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #b45309;
}

/* ============================================
   PERFIL - CAMPOS
   ============================================ */

#buddypress .bp-widget {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    overflow: hidden;
}

#buddypress .bp-widget h2,
#buddypress .bp-widget h3 {
    background: #f9fafb;
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    border-bottom: 1px solid #e5e7eb;
}

#buddypress .bp-widget table {
    width: 100%;
    border-collapse: collapse;
}

#buddypress .bp-widget table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

#buddypress .bp-widget table td:first-child {
    font-weight: 600;
    color: #374151;
    width: 40%;
}

#buddypress .bp-widget table td:last-child {
    color: #6b7280;
}

#buddypress .bp-widget table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   CONFIGURACIONES DE CUENTA
   ============================================ */

#buddypress #settings-form {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

#buddypress #settings-form .checkbox label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
}

#buddypress #settings-form .checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    #buddypress nav.bp-navs ul {
        flex-direction: column;
    }
    
    #buddypress nav.bp-navs ul li a {
        width: 100%;
    }
    
    #buddypress #item-header #item-buttons {
        position: static;
        margin-top: 16px;
        flex-wrap: wrap;
    }
    
    #buddypress #item-header #item-header-content {
        padding: 0 20px 20px;
    }
    
    #buddypress #members-dir-list,
    #buddypress #groups-dir-list {
        grid-template-columns: 1fr;
    }
    
    #buddypress #activity-stream .activity-content,
    #buddypress #activity-stream .activity-meta,
    #buddypress #activity-stream .activity-comments {
        margin-left: 0;
        margin-top: 12px;
    }
    
    #buddypress #activity-stream .activity-avatar {
        float: none;
        margin-bottom: 12px;
    }
    
    #buddypress #whats-new-form #whats-new-content {
        margin-left: 0;
    }
    
    #buddypress #whats-new-form #whats-new-avatar {
        display: none;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#buddypress .activity-item,
#buddypress #members-dir-list li,
#buddypress #groups-dir-list li {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   BADGES DE MIEMBRO VIP
   ============================================ */

#buddypress .member-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#buddypress .member-vip-badge::before {
    content: "★";
}
