:root {
    --primary: #6a11cb;
    --primary-dark: #2575fc;
    --secondary: #8a2be2;
    --accent: #9d4edd;
    --admin-color: #ff5252;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --border: #2d3748;
    --border-light: #4a5568;
    --shadow: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: url('https://runaentertainment.xyz/images/fondo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-blend-mode: overlay;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* ANIMACIÓN NEON PARA ADMIN */
@keyframes neonPulse {
    0% {
        text-shadow: 0 0 8px rgba(255, 82, 82, 0.9),
                     0 0 12px rgba(255, 82, 82, 0.7),
                     0 0 18px rgba(255, 82, 82, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 82, 82, 1),
                     0 0 16px rgba(255, 82, 82, 0.8),
                     0 0 22px rgba(255, 82, 82, 0.6),
                     0 0 28px rgba(255, 82, 82, 0.4);
    }
}

/* CONTAINER Y LAYOUT */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.user-action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.user-action-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* MAIN GRID */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* POSTS SECTION */
.posts-section {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.section-header .material-icons {
    color: var(--accent);
}

.action-icons {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: rgba(22, 33, 62, 0.85);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* POST CARDS */
.post-card {
    background: rgba(22, 33, 62, 0.85);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pinned {
    border-left: 4px solid var(--warning);
}

.pinned-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--warning);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.post-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.post-user-info {
    flex: 1;
}

.post-username {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
}

.post-username:hover {
    color: var(--accent);
}

/* NOMBRE DE ADMIN EN ROJO NEON - CÁLIDO Y AGRADABLE */
.post-username.admin {
    color: var(--admin-color);
    text-shadow: 0 0 8px rgba(255, 82, 82, 0.9),
                 0 0 12px rgba(255, 82, 82, 0.7),
                 0 0 18px rgba(255, 82, 82, 0.5);
    font-weight: 700;
    background: linear-gradient(90deg, #ff5252, #ff8585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonPulse 2s infinite alternate;
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-content {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 12px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* IMAGES CONTAINER */
.post-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
    max-width: 100%;
}

.post-image-item {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-image-item:hover {
    transform: scale(1.05);
}

.post-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* POST ACTIONS - MEJORADO CON BOTÓN DE REPORTE */
.post-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.post-action:hover {
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
}

/* SOLUCIÓN: Estilos para corazones en rojo cuando están activos */
.post-action.liked {
    color: var(--admin-color) !important;
}

.post-action.liked .material-icons {
    color: var(--admin-color) !important;
}

.post-action.liked:hover {
    color: #ff8585 !important;
}

.post-action.liked:hover .material-icons {
    color: #ff8585 !important;
}

.post-report-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.post-report-btn:hover {
    color: var(--admin-color);
    background: rgba(255, 82, 82, 0.1);
}

.post-owner-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.post-action-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.post-action-btn:hover {
    transform: scale(1.05);
}

.post-action-btn.share:hover {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.post-action-btn.edit:hover {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}

.post-action-btn.delete:hover {
    background: var(--admin-color);
    color: white;
    border-color: var(--admin-color);
}

/* RESPONSES MODAL */
.responses-modal .modal {
    max-width: 800px;
    width: 90%;
}

.response-post {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.response-form {
    margin-bottom: 30px;
}

.response-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 15px;
}

.response-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* RESPONSES HIERARCHY */
.responses-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.response-item {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.response-item.reply {
    margin-left: 40px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--border-light);
}

.response-item.reply.reply-level-2 {
    margin-left: 80px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid var(--border-light);
}

.response-item.reply.reply-level-2 + .response-item.reply {
    margin-left: 80px;
}

.response-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.response-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.response-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.response-user-info {
    flex: 1;
}

/* NOMBRE DE ADMIN EN RESPUESTAS - ROJO NEON CÁLIDO */
.response-username.admin {
    color: var(--admin-color);
    text-shadow: 0 0 6px rgba(255, 82, 82, 0.8),
                 0 0 10px rgba(255, 82, 82, 0.6);
    font-weight: 600;
    background: linear-gradient(90deg, #ff5252, #ff8585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonPulse 2s infinite alternate;
}

.response-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.response-content {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 47px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.response-actions {
    display: flex;
    gap: 15px;
    padding-left: 47px;
    flex-wrap: wrap;
}

.response-action {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.response-action:hover {
    background: rgba(22, 33, 62, 0.6);
    color: var(--text-primary);
}

/* SOLUCIÓN: Estilos para corazones de respuestas en rojo cuando están activos */
.response-action.liked {
    color: var(--admin-color) !important;
}

.response-action.liked .material-icons {
    color: var(--admin-color) !important;
}

.response-action.liked:hover {
    color: #ff8585 !important;
}

.response-action.liked:hover .material-icons {
    color: #ff8585 !important;
}

/* FORMULARIO DE RESPUESTA ANIDADA */
.reply-form {
    display: none;
    margin-top: 15px;
    margin-left: 47px;
    padding: 15px;
    background: rgba(22, 33, 62, 0.8);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.reply-form.active {
    display: block;
}

/* BOTONES - NIVELADOS PARA MODALES */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    height: 44px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.btn-secondary {
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(22, 33, 62, 0.8);
    border-color: var(--accent);
}

.btn-danger {
    background: var(--admin-color);
    color: white;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.5);
}

.btn-danger:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.7);
}

/* MODALES CON BOTONES NIVELADOS */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: rgba(22, 33, 62, 0.95);
    border-radius: 15px;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(26, 26, 46, 0.6);
}

.modal-content {
    padding: 20px;
}

/* FOOTER DE MODAL CON BOTONES NIVELADOS */
.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.modal-footer .btn {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

/* FORMULARIOS */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.post-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 20px;
}

.post-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* CONTADOR DE CARACTERES */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    margin-top: -15px;
}

/* UPLOAD DE IMÁGENES */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.image-upload-area:hover, .image-upload-area.dragover {
    border-color: var(--accent);
    background: rgba(157, 78, 221, 0.05);
}

.image-upload-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.image-upload-text {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.image-count-indicator {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: none;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.image-preview-remove:hover {
    background: var(--admin-color);
}

/* USUARIOS ONLINE */
.users-modal .modal {
    max-width: 400px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    background: rgba(26, 26, 46, 0.6);
    transition: all 0.3s ease;
}

.user-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.user-item.online {
    border-left: 4px solid var(--success);
}

.user-item.away {
    border-left: 4px solid var(--warning);
}

.user-item.offline {
    border-left: 4px solid var(--text-secondary);
}

/* NOTIFICACIONES - MEJORADO: SISTEMA INTELIGENTE */
.notifications-modal .modal {
    max-width: 500px;
}

.notification-item {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    background: rgba(26, 26, 46, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.notification-item.unread {
    background: rgba(22, 33, 62, 0.8);
    border-color: var(--accent);
}

.notification-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.notification-empty-icon {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 20px;
}

/* BUSCADOR */
.search-modal .modal {
    max-width: 800px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-results-container {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
}

.search-empty, .search-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 20px;
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.search-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(22, 33, 62, 0.8);
    border-color: var(--accent);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ESTADOS */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}

.error-message {
    background: rgba(255, 82, 82, 0.1);
    color: var(--admin-color);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--admin-color);
    margin-bottom: 20px;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--success);
    margin-bottom: 20px;
}

/* NOTIFICACIONES GLOBALES */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2001;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.notification.success {
    background: rgba(16, 185, 129, 0.9);
}

.notification.error {
    background: rgba(255, 82, 82, 0.9);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* LOADING STATES */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-btn {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn.loading:hover {
    transform: none;
}

/* EMBEDS */
.embed-container {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* CONFIRMACIÓN DE ELIMINACIÓN */
.delete-confirm-modal .modal {
    max-width: 500px;
}

.delete-confirm-content {
    text-align: center;
    padding: 20px;
}

.delete-confirm-icon {
    font-size: 4rem;
    color: var(--admin-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.5);
}

.delete-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* EDITAR MODALES */
.edit-modal .modal {
    max-width: 700px;
}

.edit-form {
    margin-top: 20px;
}

/* ANIMACIONES PARA CORAZONES */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.post-action.liked .material-icons,
.response-action.liked .material-icons {
    animation: heartBeat 0.6s ease;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-actions {
        margin-right: 0;
        order: 1;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .post-images-container {
        flex-direction: column;
    }
    
    .post-image-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .post-image-item img {
        height: 180px;
    }
    
    .response-item.reply {
        margin-left: 20px;
    }
    
    .response-item.reply.reply-level-2 {
        margin-left: 40px;
    }
    
    .response-content, .response-actions {
        padding-left: 30px;
    }
    
    .reply-form {
        margin-left: 30px;
        padding: 10px;
    }
    
    .modal {
        width: 95%;
        margin: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .post-owner-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group .btn {
        width: 100%;
    }
    
    .delete-confirm-buttons {
        flex-direction: column;
    }
    
    .delete-confirm-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .section-header {
        font-size: 1.2rem;
    }
    
    .post-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .post-user-info {
        text-align: center;
    }
    
    .post-image-item img {
        height: 150px;
    }
    
    .response-item.reply {
        margin-left: 10px;
    }
    
    .response-item.reply.reply-level-2 {
        margin-left: 20px;
    }
    
    .response-content, .response-actions {
        padding-left: 15px;
    }
    
    .reply-form {
        margin-left: 15px;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ESTILOS ADICIONALES PARA POST ESPECÍFICO */
.post-specific-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.back-to-forum {
    margin-bottom: 20px;
}

.specific-post-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

/* ENLACES DE PERFIL */
.post-user-avatar-link, .post-username {
    transition: all 0.3s ease;
}

.post-user-avatar-link:hover, .post-username:hover {
    opacity: 0.8;
}

/* NIVELES INFINITOS DE RESPUESTAS */
.response-item {
    margin-bottom: 15px;
}

.response-item.reply {
    margin-left: 40px;
    border-left: 2px solid var(--border);
    padding-left: 15px;
}

.response-item.reply-level-2 {
    margin-left: 60px;
}

.response-item.reply-level-3 {
    margin-left: 80px;
}

.response-item.reply-level-4 {
    margin-left: 100px;
}

.response-item.reply-level-5 {
    margin-left: 120px;
}

/* PARA NIVELES MUY PROFUNDOS, HACER MÁS SUTIL */
.response-item[data-level="5"] {
    opacity: 0.9;
}

.response-item[data-level="6"] {
    opacity: 0.8;
}

.response-item[data-level="7"] {
    opacity: 0.7;
}

/* CUANDO HAY DEMASIADOS NIVELES, MOSTRAR SCROLL */
.deep-nesting-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

/* ESTILOS PARA VISUALIZACIÓN ESPECÍFICA DE RESPUESTA */
.response-avatar-link {
    text-decoration: none;
}

/* ESTILOS PARA BOTONES DE ACCIÓN EN VISTA ESPECÍFICA */
.post-action, .response-action {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-action:hover, .response-action:hover {
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
}

/* ESTILOS ESPECÍFICOS PARA FORMS EN VISTA DE POST */
.post-specific-view .post-textarea,
.post-specific-view .response-textarea {
    background: rgba(26, 26, 46, 0.8);
}

/* ESTILOS PARA BOTONES EN VISTA ESPECÍFICA */
.post-specific-view .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ESTILOS PARA ESPACIADO EN VISTA ESPECÍFICA */
.post-specific-view .post-content {
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ESTILOS PARA ENLACES EN VISTA ESPECÍFICA */
.post-specific-view a {
    color: var(--accent);
    text-decoration: none;
}

.post-specific-view a:hover {
    text-decoration: underline;
}

/* ESTILOS PARA SECCIÓN DE RESPUESTAS EN VISTA ESPECÍFICA */
.post-specific-view #post-responses-container {
    margin-top: 40px;
}

.post-specific-view #post-responses-container h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

/* ANIMACIÓN DE FADE IN PARA NUEVOS POSTS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeIn 0.5s ease;
}

/* ESTILOS PARA SCROLLBAR PERSONALIZADO */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ESTILOS PARA CONTENEDOR DE IMÁGENES EN VISTA ESPECÍFICA */
.post-specific-view .post-images-container {
    margin: 20px 0;
}

.post-specific-view .post-image-item img {
    max-height: 300px;
    max-width: 100%;
}

/* ESTILOS PARA HEADER EN VISTA ESPECÍFICA */
.post-specific-view .post-header {
    margin-bottom: 20px;
}

/* ESTILOS PARA ACCIONES DE USUARIO EN VISTA ESPECÍFICA */
.post-specific-view .post-owner-actions {
    margin-top: 20px;
    justify-content: flex-start;
}

/* ESTILOS PARA MODALES EN VISTA ESPECÍFICA */
.post-specific-view .modal-overlay {
    z-index: 2000;
}

/* ESTILOS PARA ENLACES DE PERFIL EN VISTA ESPECÍFICA */
.post-specific-view .post-user-avatar-link,
.post-specific-view .post-username,
.post-specific-view .response-avatar-link,
.post-specific-view .response-username {
    text-decoration: none;
}

.post-specific-view .post-user-avatar-link:hover,
.post-specific-view .post-username:hover,
.post-specific-view .response-avatar-link:hover,
.post-specific-view .response-username:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ESTILOS PARA ESTADO ONLINE EN HEADER */
#online-status {
    color: var(--success);
    font-weight: 500;
}

/* ESTILOS PARA CONTENEDOR DE CARGA EN VISTA ESPECÍFICA */
.post-specific-view .loading {
    padding: 60px 20px;
}

/* ESTILOS PARA SECCIÓN DE RESPUESTAS ANIDADAS EN VISTA ESPECÍFICA */
.post-specific-view #response-replies-container {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid var(--border);
}

/* ESTILOS PARA FORMULARIO DE RESPUESTA EN VISTA ESPECÍFICA */
.post-specific-view .reply-form {
    background: rgba(22, 33, 62, 0.9);
    border: 1px solid var(--accent);
}

/* ESTILOS PARA RESALTAR POST ACTUAL EN VISTA ESPECÍFICA */
.post-specific-view .post-card {
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

/* ESTILOS PARA ENCABEZADOS EN VISTA ESPECÍFICA */
.post-specific-view h1, 
.post-specific-view h2, 
.post-specific-view h3, 
.post-specific-view h4 {
    color: var(--text-primary);
    font-weight: 600;
}

/* ESTILOS PARA CONTENEDOR DE POST ORIGINAL EN VISTA DE RESPUESTA */
.post-specific-view > div:first-child {
    background: rgba(22, 33, 62, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

/* ESTILOS PARA BOTÓN VOLVER AL FORO */
.back-to-forum .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* ESTILOS PARA RESPONSIVE EN VISTA ESPECÍFICA */
@media (max-width: 768px) {
    .post-specific-view {
        padding: 15px;
    }
    
    .specific-post-title {
        font-size: 1.3rem;
    }
    
    .post-specific-view .post-header {
        flex-direction: row;
        text-align: left;
    }
    
    .post-specific-view .post-user-info {
        text-align: left;
    }
    
    .post-specific-view .response-item.reply {
        margin-left: 20px;
    }
    
    .post-specific-view .response-item.reply-level-2 {
        margin-left: 40px;
    }
}

@media (max-width: 480px) {
    .post-specific-view {
        padding: 10px;
    }
    
    .specific-post-title {
        font-size: 1.2rem;
    }
    
    .post-specific-view .post-action,
    .post-specific-view .response-action {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .post-specific-view .post-owner-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-specific-view .response-item.reply {
        margin-left: 10px;
    }
    
    .post-specific-view .response-item.reply-level-2 {
        margin-left: 20px;
    }
}

/* ESTILOS PARA ALINEACIÓN DE CONTENIDO EN CENTRO */
@media (min-width: 1400px) {
    .container {
        padding: 20px 40px;
    }
}

/* ESTILOS PARA EFECTO DE VIDRIO ESMERILADO EN MODALES */
.modal {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ESTILOS PARA SOMBRAS EN ELEMENTOS INTERACTIVOS */
.post-card, 
.response-item, 
.user-item, 
.notification-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-card:hover, 
.response-item:hover, 
.user-item:hover, 
.notification-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ESTILOS PARA TRANSICIONES SUAVES */
* {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease, 
                transform 0.3s ease, 
                opacity 0.3s ease,
                box-shadow 0.3s ease;
}

/* ESTILOS PARA FOCUS VISIBLE */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ESTILOS PARA CONTRASTE DE TEXTO */
.post-content, .response-content {
    color: rgba(255, 255, 255, 0.95);
}

/* ESTILOS PARA PLACEHOLDERS */
::placeholder {
    color: rgba(176, 176, 176, 0.7);
}

/* ESTILOS PARA SELECTION */
::selection {
    background: rgba(157, 78, 221, 0.3);
    color: white;
}

/* ESTILOS PARA IMPRESIÓN */
@media print {
    .modal-overlay,
    .user-actions,
    .post-actions,
    .response-actions,
    .post-owner-actions {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ============================================
   ESTILOS QUE ESTABAN EN FORUM.PHP - IMPLEMENTADOS AQUÍ
   ============================================ */

/* Estilos para corazones - AÑADIDOS */
.post-action.liked .material-icons {
    color: #ef4444 !important;
    animation: heartBeat 0.6s ease;
}

.post-action.liked {
    color: #ef4444 !important;
}

.response-action.liked .material-icons {
    color: #ef4444 !important;
    animation: heartBeat 0.6s ease;
}

.response-action.liked {
    color: #ef4444 !important;
}

/* Estilos para enlaces de perfil */
.post-user-avatar-link, .post-username {
    transition: all 0.3s ease;
}

.post-user-avatar-link:hover, .post-username:hover {
    opacity: 0.8;
}

/* Estilos para respuestas anidadas INFINITAS */
.response-item {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    position: relative;
}

.response-item.reply {
    margin-left: 30px;
    margin-top: 10px;
    background: rgba(106, 17, 203, 0.05);
    border-left: 3px solid var(--accent);
}

.response-item.reply-level-2 {
    margin-left: 60px;
    background: rgba(106, 17, 203, 0.02);
    border-left: 3px solid var(--accent-light);
}

.response-item.reply-level-3 {
    margin-left: 90px;
    background: rgba(106, 17, 203, 0.01);
    border-left: 3px solid var(--accent-lighter);
}

.reply-form {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(106, 17, 203, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.reply-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.load-replies-btn {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.load-replies-btn:hover {
    background: var(--accent);
    color: white;
}

.replies-count {
    font-size: 0.8rem;
    color: var(--accent);
    margin-left: 5px;
    font-weight: 600;
}

.nested-replies-container {
    margin-top: 15px;
    padding-left: 30px;
    border-left: 2px dashed var(--border);
}

/* Estilos específicos para imágenes en posts */
.post-image-item img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 6px;
}

/* Estilos para avatar de usuario */
.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* Estilos para notificación de usuario */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Estilos para acciones de usuario */
.user-action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.user-action-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Estilos para icono de búsqueda */
.icon-btn {
    background: rgba(22, 33, 62, 0.85);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Estilos para badge de contador online */
.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Estilos para formulario de creación de posts */
.post-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 20px;
}

.post-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Estilos para contador de caracteres */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    margin-top: -15px;
}

/* Estilos para área de subida de imágenes */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.image-upload-area:hover, .image-upload-area.dragover {
    border-color: var(--accent);
    background: rgba(157, 78, 221, 0.05);
}

/* Estilos para previsualización de imágenes */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.image-preview-remove:hover {
    background: var(--admin-color);
}

/* Estilos para botón de cargar más posts */
.load-more-btn {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn.loading:hover {
    transform: none;
}

/* Estilos para spinner de carga */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para notificaciones globales */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2001;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.notification.success {
    background: rgba(16, 185, 129, 0.9);
}

.notification.error {
    background: rgba(255, 82, 82, 0.9);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para contenido procesado */
.post-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* Estilos para embeds de YouTube */
.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos para scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}