/* Estilos para el menú de 3 puntos */
.dropdown {
    position: relative;
    display: inline-block;
}

.post-content-area {
    position: relative;
}

.dropdown-toggle {
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6c757d;
    z-index: 1061;
    position: relative;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    color: #6c757d;
    transition: color 0.2s ease;
}

.dropdown-toggle:hover i {
    color: #495057;
}

/* Estilos para el botón de acciones */
.action-button {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    transition: all 0.2s ease;
}

.action-button:hover {
    color: #495057;
}

.action-button i {
    font-size: 0.75rem;
}

/* Ocultar la flecha del dropdown */
.action-button.dropdown-toggle::after {
    display: none;
}

/* Ajustar posición del menú dropdown */
.dropdown-menu {
    min-width: 160px;
    padding: 0.25rem 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 0.875rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #333;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
}

.dropdown-item i {
    margin-right: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

/* Asegurar que el menú esté por encima de otros elementos */
.dropdown-menu.show {
    display: block;
    z-index: 1060;
    animation: fadeIn 0.2s ease;
}

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

/* Ajustar posición del menú */
.post-card .dropdown {
    position: static;
}

.post-card .dropdown-menu {
    position: absolute;
    top: 2.5rem;
    right: 1rem;
    left: auto;
    transform-origin: top right;
}

/* Estilos específicos para el botón en la tarjeta de post */
.post-card .dropdown-toggle {
    padding: 0.25rem;
    margin: -0.25rem;
}
